/* Shared auth styles for sign-in and register pages. */

:root {
    --auth-bg: #080d1b;
    --auth-card: #0d1528;
    --auth-card-2: #111c33;
    --auth-primary: #1199fa;
    --auth-primary-2: #1fbcff;
    --auth-text: #ffffff;
    --auth-muted: #9fb2d1;
    --auth-field-bg: rgba(255, 255, 255, 0.03);
    --auth-border: rgba(255, 255, 255, 0.12);
    --auth-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.auth-page {
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-main {
    position: relative;
    min-height: calc(100vh - 160px);
    padding: 120px 0 90px;
    display: flex;
    align-items: center;
}

.auth-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(17, 153, 250, 0.22), transparent 35%),
        radial-gradient(circle at 88% 90%, rgba(31, 188, 255, 0.2), transparent 42%),
        var(--auth-bg);
    z-index: 0;
}

.auth-signin-page .auth-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(8, 13, 27, 0.72), rgba(8, 13, 27, 0.9)),
        url('/wp-content/themes/theforest/images/11.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

.auth-main .container {
    position: relative;
    z-index: 2;
}

.auth-card {
    margin-left: auto;
    margin-right: auto;
    float: none;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--auth-card), var(--auth-card-2));
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
    padding: 36px 36px 32px;
    backdrop-filter: blur(8px);
}

.auth-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
    color: var(--auth-text);
    margin: 0 0 26px;
}

.auth-helper-text {
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: -12px 0 20px;
    text-align: center;
}

.auth-form .auth-field-row {
    margin-top: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select,
.auth-reset-page form input[type="text"],
.auth-reset-page form input[type="email"],
.auth-reset-page form input[type="password"] {
    width: 100%;
    border-radius: 14px;
    background: var(--auth-field-bg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--auth-text);
    padding: 16px 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.auth-form select {
    appearance: none;
    color-scheme: dark;
}

.auth-form select option {
    background-color: var(--auth-card);
    color: var(--auth-text);
}

.auth-form select option[value=""] {
    color: var(--auth-muted);
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form select:focus,
.auth-reset-page form input[type="text"]:focus,
.auth-reset-page form input[type="email"]:focus,
.auth-reset-page form input[type="password"]:focus {
    border-color: rgba(17, 153, 250, 0.8);
    box-shadow: 0 0 0 3px rgba(17, 153, 250, 0.2);
    transform: translateY(-1px);
}

.auth-form input[type="text"]:hover,
.auth-form input[type="email"]:hover,
.auth-form input[type="password"]:hover,
.auth-form select:hover,
.auth-reset-page form input[type="text"]:hover,
.auth-reset-page form input[type="email"]:hover,
.auth-reset-page form input[type="password"]:hover {
    border-color: rgba(31, 188, 255, 0.45);
}

.auth-form ::placeholder {
    color: rgba(159, 178, 209, 0.75);
}

.auth-phone-row {
    margin-top: 16px!important;
    /* margin-top: 2px; */
}

.auth-phone-row .col-md-3,
.auth-phone-row .col-md-9 {
    margin-top: 0;
}

.auth-submit-row {
    margin-top: 20px;
}

.btnnewredmain {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 18px !important;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-2));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btnnewredmain:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 153, 250, 0.35);
}

.auth-reset-page form {
    margin-top: 18px;
}

.auth-reset-page form > div,
.auth-reset-page form .form-group {
    margin-top: 16px;
}

.auth-reset-page form button,
.auth-reset-page form input[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 18px !important;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-2));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-reset-page form button:hover,
.auth-reset-page form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 153, 250, 0.35);
}

.auth-secondary-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.auth-secondary-button {
    flex: 1;
    border: 1px solid rgba(191, 227, 255, 0.28);
    border-radius: 14px;
    color: #bfe3ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    padding: 13px 14px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.auth-secondary-button:hover {
    background: rgba(191, 227, 255, 0.08);
    border-color: rgba(191, 227, 255, 0.55);
    color: #ffffff;
    text-decoration: none;
}

.auth-link {
    margin-top: 16px;
    margin-left: auto;
    float: right;
    text-decoration: none;
    color: #bfe3ff;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #ffffff;
}

.auth-checkbox-row {
    margin-top: 18px;
    margin-bottom: 18px;
}

.auth-checkbox-row span {
    color: var(--auth-muted);
}

.hr-login {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    height: 1px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.login-footer {
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    color: var(--auth-text);
    margin: 0;
}

.login-footer + .login-footer {
    margin-top: 8px;
}

.login-footer-muted {
    color: var(--auth-muted);
}

.login-footer a {
    color: #bfe3ff;
    text-decoration: none;
}

.login-footer a:hover {
    color: #ffffff;
}

.error-sign-message {
    color: #ff8c8c;
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
}

.auth-alert,
.auth-reset-message {
    text-align: center;
}

.auth-reset-message {
    color: var(--auth-text);
}

.auth-reset-message label {
    color: var(--auth-muted);
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-hidden {
    display: none;
}

#registration-loading,
#sign-in-loading {
    display: none;
}

.auth-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.alert,
.spinner-border {
    margin-top: 14px;
}

.auth-register-card {
    max-width: 760px;
}

.auth-signin-card {
    max-width: 620px;
}

@media (max-width: 991px) {
    .auth-main {
        min-height: auto;
        padding: 90px 0 70px;
    }

    .auth-title {
        font-size: 34px;
    }

    .auth-card {
        padding: 28px 24px 24px;
    }
}

@media (max-width: 767px) {
    .auth-main {
        padding: 70px 0 50px;
    }

    .auth-title {
        font-size: 30px;
        letter-spacing: 0;
    }

    .auth-form .auth-field-row {
        margin-top: 12px;
    }

    .btnnewredmain {
        font-size: 16px !important;
    }

    .auth-secondary-actions {
        flex-direction: column;
    }
}
