@import url(root.css);
/* ===============================
   BASE
================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}
/* Header */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 20%;
    height: auto;
}

/* ===============================
   AUTH PAGE LAYOUT
================================= */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.auth-hero {
    padding: 60px 60px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.hero-content {
    max-width: 520px;
}

.brand {
    font-size: 30px;
    margin: 0 0 15px;
}

.hero-title {
    font-size: 36px;
    margin: 0 0 12px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 20px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: left;
}

.hero-features div {
    background: rgba(255,255,255,0.12);
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.18);
}

.hero-illustration {
    margin-top: 30px;
    opacity: 0.95;
}

/* ===============================
   LOGIN CARD
================================= */
.auth-login {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(0, 136, 255, 0.25));
    filter: blur(18px);
    opacity: 0.6;
    z-index: 0;
}

.login-card * {
    position: relative;
    z-index: 1;
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.login-subtitle {
    margin: 0 0 25px;
    color: var(--text-muted);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.field input,select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    font-size: 14px;
    transition: var(--transition);
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,129,229,0.15);
    background: white;
}

/* Password field */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    padding: 6px;
}

/* Alerts */
.alert {
    display: none;
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 13px;
}

.alert.error {
    background: #ffe5e5;
    color: #8b1c1c;
    border: 1px solid #f5c2c2;
}

.alert.success {
    background: #e6ffed;
    color: #1f7a3d;
    border: 1px solid #b7f0c1;
}

/* Login options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-options a {
    color: var(--primary);
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: none;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Loader inside button */
.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-primary.loading .btn-loader {
    display: inline-block;
}

.btn-primary.loading .btn-text {
    opacity: 0.5;
}

/* Secure note */
.secure-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer */
.auth-footer {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 980px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        padding: 40px 25px;
        text-align: center;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .auth-login {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 18px;
    }

    .hero-title {
        font-size: 28px;
    }
}

/* ===============================
   ANIMATIONS
================================= */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* ===============================
   MAP STYLES (INSCRIPTION)
================================= */

.map-card {
    height: 400px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    margin-bottom: 16px;
    overflow: hidden;
}

.map-hint {
    margin: 12px 0 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.map-error {
    display: none;
    margin-top: -10px;
    margin-bottom: 12px;
    color: var(--danger);
    font-size: 13px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    padding: 10px 12px;
    border-radius: var(--radius);
}

/* SHOW ERROR */
.map-error.show {
    display: block;
}

/* BUTTON DISABLED STATE */
.btn-primary:disabled {
    background: rgba(30,129,229,0.35);
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled .btn-loader {
    display: none;
}

.btn-primary:disabled .btn-text {
    opacity: 0.7;
}

/* WIZARD PROGRESS */
.wizard-progress {
    margin: 18px 0;
}

.progress-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 33%;
    background: var(--primary);
    border-radius: 999px;
    transition: width var(--transition);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.progress-steps .step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
}

.progress-steps .step.active {
    background: var(--primary);
    color: #fff;
}

.step-section {
    display: none;
}

.step-section.active {
    display: block;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}
button {
    padding: 11px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}


.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-main);
}
/* input invalid */
input.invalid,
select.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* map error */
.map-error.show {
    display: block;
}

