@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2ecc71;
    --primary-hover: #27ae60;
    --dark-text: #1a1a1a;
    --light-text: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: #0f2f24;
}

    /* Background image */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: url("../images/solor-login-image.jpg") center center / cover no-repeat;
        filter: blur(6px);
        transform: scale(1.08);
        z-index: 0;
    }

    /* Dark overlay */
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient( rgba(10, 25, 20, 0.55), rgba(20, 120, 80, 0.45) );
        z-index: 0;
    }

/* --- Auth Card Container --- */
.auth-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 430px;
    padding: 40px 30px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--light-text);
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h2 {
    color: var(--dark-text);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-desc {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 12px;
    margin-top: 10px;
}

.form-col {
    flex: 1;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

    .form-input:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--primary-color);
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.12);
    }

.form-row {
    display: flex;
    gap: 10px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

    .btn-auth:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
    }

.divider {
    margin: 25px 0;
    display: flex;
    align-items: center;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

    .divider span {
        padding: 0 15px;
        font-size: 11px;
        font-weight: 700;
        color: #94a3b8;
    }

.social-wrapper {
    margin-top: 10px;
    width: 100%;
}

.btn-social,
.google-standard-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: 0.25s ease;
}

    .btn-social:hover,
    .google-standard-btn:hover {
        background: #f8fafc;
        transform: translateY(-1px);
    }

    .btn-social img,
    .google-standard-btn img {
        width: 18px;
        height: 18px;
    }

/* Forgot Password */
.forgot-wrapper {
    text-align: right;
    margin-top: 6px;
    margin-bottom: 10px;
}

.forgot-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

    .forgot-link:hover {
        color: var(--primary-hover) !important;
        text-decoration: underline !important;
    }

/* Footer Links */
.footer-links {
    margin-top: 25px;
    font-size: 14px;
    color: var(--light-text);
}

    .footer-links a {
        color: var(--primary-color) !important;
        text-decoration: none !important;
        font-weight: 600;
    }

        .footer-links a:hover {
            color: var(--primary-hover) !important;
            text-decoration: underline !important;
        }

.validation-text {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.success-text {
    color: green;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.error-text {
    color: red;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-container {
        padding: 30px 20px;
    }
}


.auth-alert-error {
    margin-top: 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #991b1b;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

    .auth-alert-error i {
        margin-top: 2px;
        color: #ef4444;
    }

    .auth-alert-error strong {
        display: block;
        font-weight: 700;
    }

    .auth-alert-error p {
        margin: 6px 0 8px;
        color: #7f1d1d;
        font-size: 12px;
    }

.support-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #ffffff;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

    .support-link.whatsapp {
        color: #15803d;
    }

.reset-link-box {
    margin-top: 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

    .reset-link-box > i {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #22c55e;
        color: white;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        margin-bottom: 8px;
    }

    .reset-link-box h4 {
        margin: 4px 0 6px;
        color: #166534;
        font-size: 15px;
    }

    .reset-link-box p {
        margin: 0 0 12px;
        color: #4b5563;
        font-size: 12px;
        line-height: 1.5;
    }

.reset-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
}

    .reset-link-btn:hover {
        background: #16a34a;
    }
.password-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}