/* ==========================================================================
   Dikkaart — Shared styles
   ========================================================================== */

/* Reset */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
    background: #1a1a2e;
    color: #fff;
    z-index: 10;
    position: relative;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-welcome {
    font-size: 14px;
    color: #ccc;
}

.nav-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, border-color 0.2s;
}

.nav-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.nav-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.nav-btn-primary {
    background: #4caf50;
    color: #fff;
}
.nav-btn-primary:hover {
    background: #43a047;
}

/* --------------------------------------------------------------------------
   Auth pages — centered card layout
   -------------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    background: #f5f5f5;
}

.auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a2e;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 28px 0;
}

/* --------------------------------------------------------------------------
   Form elements
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: #4caf50;
}
.form-input.error {
    border-color: #e53935;
}

.form-error {
    font-size: 12px;
    color: #e53935;
    margin-top: 4px;
    display: none;
}
.form-error.visible {
    display: block;
}

.form-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #4caf50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.form-submit:hover {
    background: #43a047;
}
.form-submit:disabled {
    background: #a5d6a7;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}
.form-footer a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
}
.form-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Alert messages
   -------------------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}
.alert.visible { display: block; }
.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* --------------------------------------------------------------------------
   Verification code inputs
   -------------------------------------------------------------------------- */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.code-digit:focus {
    border-color: #4caf50;
}

/* --------------------------------------------------------------------------
   Demo banner (shown on map page for non-authenticated users)
   -------------------------------------------------------------------------- */
.demo-banner {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(26, 26, 46, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.demo-banner a {
    color: #81c784;
    font-weight: 600;
    text-decoration: none;
}
.demo-banner a:hover {
    text-decoration: underline;
}
