/* ====== Auth pages (sign up / log in) ====== */
.auth-section {
    position: relative;
    overflow: hidden;
    padding: 64px 0 96px;
    background-color: #F7F9F8;
}

/* بقع خضراء ناعمة بالخلفية */
.auth-section::before,
.auth-section::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(70.71% 70.71% at 50% 50%, rgba(187, 230, 203, 0.45) 0%, rgba(220, 245, 230, 0.15) 60%, rgba(220, 245, 230, 0) 80%);
    pointer-events: none;
}

.auth-section::before {
    top: 20%;
    left: -120px;
}

.auth-section::after {
    top: -60px;
    right: -80px;
}

.auth-section .container {
    position: relative;
    z-index: 1;
}

.auth-heading {
    text-align: center;
    margin-bottom: 56px;
}

.auth-heading h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--h2-color);
    margin-bottom: 12px;
}

.auth-heading p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 56px 40px 40px;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 42, 31, .05);
}

.auth-social {
    display: flex;
    gap: 12px;
}

.auth-social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    border: 1px solid #DDE3DD;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color .2s;
}

.auth-social-btn:hover {
    background-color: var(--mint-bg);
    color: var(--text-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    font-size: 12px;
    color: #9AA39A;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #E3E8E3;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #DDE3DD;
    border-radius: 10px;
    background-color: #fff;
    transition: border-color .2s;
}

.auth-input:focus-within {
    border-color: var(--green-color);
}

.auth-input > i {
    color: #8A938A;
    font-size: 15px;
}

.auth-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
}

.auth-input input::placeholder {
    color: #9AA39A;
}

.auth-toggle-pass {
    border: 0;
    background: transparent;
    padding: 0;
    color: #8A938A;
    font-size: 16px;
    line-height: 1;
}

.auth-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #D64545;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--green-color);
    cursor: pointer;
}

.auth-check strong {
    color: var(--text-dark);
}

.auth-submit {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    border: 1.5px solid var(--green-color);
    border-radius: 999px;
    background-color: var(--green-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .2s, color .2s;
}

.auth-submit:hover {
    background-color: transparent;
    color: var(--green-color);
}

.auth-switch {
    margin: 28px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-switch a {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.auth-switch a:hover {
    color: var(--green-color);
}

@media (max-width: 575px) {
    .auth-section {
        padding: 40px 0 64px;
    }

    .auth-heading {
        margin-bottom: 32px;
    }

    .auth-heading h1 {
        font-size: 28px;
    }

    .auth-card {
        padding: 32px 20px 28px;
        border-radius: 20px;
    }

    .auth-social {
        flex-direction: column;
    }

    .auth-social-btn {
        flex: none;
    }
}

/* ====== Log in ====== */
.auth-input-lg {
    height: 46px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 30px;
}

.auth-row .auth-check {
    margin-top: 0;
    font-size: 13px;
    color: var(--text-dark);
}

.auth-forgot {
    font-size: 13px;
    color: var(--green-color);
    text-decoration: none;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-submit-square {
    height: 48px;
    margin-top: 0;
    border-radius: 10px;
    border-color: #245C27;
    background-color: #245C27;
    font-size: 15px;
}

.auth-submit-square:hover {
    color: #245C27;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: #FDECEC;
    color: #B42318;
    font-size: 13px;
    text-align: center;
}

/* ====== Email verification ====== */
.auth-card-center {
    padding: 44px 44px 44px;
    max-width: 488px;
    text-align: center;
}

.verify-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 28px;
    border-radius: 50%;
    background-color: #E3F2EA;
    color: var(--h2-color);
    font-size: 30px;
}

.verify-icon-check {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: #134F40;
    color: #fff;
    font-size: 16px;
}

.verify-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--h2-color);
    margin-bottom: 14px;
}

.verify-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.verify-email {
    font-size: 15px;
    font-weight: 700;
    color: var(--h2-color);
    margin-bottom: 28px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.otp-input {
    width: 48px;
    height: 56px;
    border: 1px solid #DDE3DD;
    border-radius: 10px;
    background-color: #FAFBFA;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--h2-color);
    outline: 0;
    transition: border-color .2s;
}

.otp-input::placeholder {
    color: #C2C9C2;
}

.otp-input:focus {
    border-color: var(--green-color);
    background-color: #fff;
}

.verify-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.verify-timer strong {
    color: var(--text-dark);
}

.verify-timer.expired {
    color: #D64545;
}

.auth-submit-dark {
    height: 52px;
    margin-top: 0;
    border-color: #134F40;
    background-color: #134F40;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(19, 79, 64, .2);
}

.auth-submit-dark:hover {
    color: #134F40;
}

.verify-resend-text {
    margin: 36px 0 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.verify-resend-btn {
    min-width: 224px;
    height: 42px;
    padding: 0 24px;
    border: 1.5px solid #134F40;
    border-radius: 999px;
    background-color: #fff;
    color: #134F40;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .2s, color .2s;
}

.verify-resend-btn:hover {
    background-color: #134F40;
    color: #fff;
}

.auth-success {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--green-color);
}

@media (max-width: 575px) {
    .auth-card-center {
        padding: 32px 20px;
    }

    .verify-title {
        font-size: 22px;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 42px;
        height: 50px;
    }
}
