/* ============================================================
   Auth — login page
   ============================================================ */

/* ---------- Hero ---------- */
.auth-hero {
    position: relative;
    min-height: 460px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 90% at 15% 10%, rgba(55, 125, 255, 0.35), transparent 60%),
        radial-gradient(50% 80% at 85% 20%, rgba(27, 197, 189, 0.3), transparent 60%),
        linear-gradient(rgba(20, 24, 28, 0.55), rgba(20, 24, 28, 0.65));
}

.auth-hero .shape {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
}

.auth-hero .shape svg {
    display: block;
    width: 100%;
    height: 140px;
}

.auth-back {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.auth-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    transform: translateX(-2px);
}

/* ---------- Card ---------- */
.vine-login {
    margin-top: -260px;
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.auth-card {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px -15px rgba(2, 45, 62, 0.25);
    overflow: hidden;
    animation: auth-rise 0.5s ease both;
}

.auth-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #1bc5bd 0%, #377dff 100%);
}

.auth-card .card-body {
    padding: 2.5rem;
}

.login-mascot-column {
    order: 1;
}

.login-card-column {
    order: 2;
}

.login-mascot {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
}

.login-mascot .page-mascot {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.login-mascot .page-mascot-stage {
    background-repeat: no-repeat;
    transform-origin: center bottom;
    will-change: transform, background-position;
}

@media (min-width: 768px) {
    .login-mascot-column {
        order: 1;
    }

    .login-card-column {
        order: 2;
    }
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Header ---------- */
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header .auth-logo img {
    height: 52px;
    width: auto;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #1e293b;
    margin: 1rem 0 0.25rem;
}

.auth-header p {
    margin-bottom: 0;
}

.account-approval-notice {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem;
    color: #334155;
    background: linear-gradient(135deg, #f1fbf9, #f5f8ff);
    border: 1px solid #d9e8eb;
    border-radius: 1rem;
    font-size: 0.82rem;
    line-height: 1.55;
}

.account-approval-notice p {
    margin: 0;
}

.account-approval-notice__list {
    margin: 0;
    padding-left: 1.15rem;
}

.account-approval-notice__list li + li {
    margin-top: 0.25rem;
}

.account-approval-notice__title {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #0f766e;
}

.account-approval-notice__title i {
    margin-top: 0.08rem;
    font-size: 1.05rem;
}

.account-approval-notice__title h2 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
}

.account-approval-notice a {
    color: #1768b5;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.account-approval-notice__note {
    padding-top: 0.55rem;
    color: #64748b;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

/* ---------- Inputs ---------- */
.auth-field {
    position: relative;
    margin-bottom: 1rem;
}

.auth-field .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.4rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}

.auth-card .form-control.auth-input {
    height: 3rem;
    padding-left: 2.75rem;
    font-size: 0.95rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-card .form-control.auth-input::placeholder {
    color: #a5b0bd;
}

.auth-card .form-control.auth-input:focus {
    background: #fff;
    border-color: #377dff;
    box-shadow: 0 0 0 4px rgba(55, 125, 255, 0.15);
}

.auth-card .form-control.auth-input.is-valid {
    border-color: #1bc5bd;
    box-shadow: 0 0 0 4px rgba(27, 197, 189, 0.12);
}

.auth-card .form-control.auth-input.is-invalid {
    border-color: #ef486a;
    box-shadow: 0 0 0 4px rgba(239, 72, 106, 0.12);
}

.auth-card .invalid-feedback {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Password toggle alignment inside icon input */
.auth-input-wrap .password-toggle-btn {
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
}

/* ---------- Remember / forgot ---------- */
.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.86rem;
}

.auth-meta .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #1bc5bd;
    cursor: pointer;
}

.auth-meta .form-check-label {
    cursor: pointer;
    color: #475569;
    font-weight: 600;
}

.auth-forgot {
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}

.auth-forgot:hover {
    color: #377dff;
}

/* ---------- Submit ---------- */
.auth-submit {
    height: 3.1rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: 0.9rem;
    box-shadow: 0 12px 24px -8px rgba(27, 197, 189, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 28px -8px rgba(27, 197, 189, 0.6);
}

.auth-submit:active {
    transform: none;
}

.auth-submit:disabled {
    opacity: 0.75;
    transform: none;
    cursor: wait;
}

/* ---------- Divider ---------- */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e2e8f0;
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    background: #fff;
}

/* ---------- Social buttons ---------- */
.auth-social .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.9rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    border: 0;
    border-radius: 0.9rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-social .btn:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.auth-social .bg-google {
    box-shadow: 0 10px 20px -8px rgba(234, 67, 53, 0.55);
}

.auth-social .bg-facebook {
    box-shadow: 0 10px 20px -8px rgba(24, 119, 242, 0.55);
}

.auth-social .bg-github,
.auth-social-signup .bg-github {
    background: #24292f;
    box-shadow: 0 10px 20px -8px rgba(36, 41, 47, 0.45);
}

.auth-social-signup .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    color: #fff;
    border: 0;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-social-signup .btn:hover {
    color: #fff;
    filter: brightness(1.08);
}

.auth-social-signup .bg-google {
    background: #4285f4;
}

.auth-social-signup .bg-facebook {
    background: #1877f2;
}

/* ---------- Footer CTA ---------- */
.auth-cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-cta a {
    font-weight: 800;
    color: #377dff;
    text-decoration: none;
}

.auth-cta a:hover {
    text-decoration: underline;
}

/* ---------- Terms ---------- */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.8rem;
}

.auth-terms .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    accent-color: #1bc5bd;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-terms .form-check-label {
    cursor: pointer;
    color: #475569;
    font-weight: 600;
}

.auth-terms .form-check-label a {
    font-weight: 800;
    color: #377dff;
    text-decoration: none;
}

.auth-terms .form-check-label a:hover {
    text-decoration: underline;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] .auth-card {
    background: #171b21;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .auth-header h1 {
    color: #f1f5f9;
}

:root[data-theme="dark"] .auth-field .form-label,
:root[data-theme="dark"] .auth-meta .form-check-label {
    color: #cbd5e1;
}

:root[data-theme="dark"] .auth-card .form-control.auth-input {
    background: #0f1319;
    border-color: #2b3442;
    color: #e2e8f0;
}

:root[data-theme="dark"] .auth-card .form-control.auth-input:focus {
    background: #0f1319;
    border-color: #377dff;
}

:root[data-theme="dark"] .auth-divider::before {
    border-top-color: #2b3442;
}

:root[data-theme="dark"] .auth-divider span {
    background: #171b21;
    color: #7d8aa0;
}

:root[data-theme="dark"] .auth-cta {
    border-top-color: #2b3442;
    color: #94a3b8;
}

:root[data-theme="dark"] .auth-forgot {
    color: #94a3b8;
}

:root[data-theme="dark"] .auth-terms {
    background: #0f1319;
    border-color: #2b3442;
}

:root[data-theme="dark"] .auth-terms .form-check-label {
    color: #cbd5e1;
}

:root[data-theme="dark"] .account-approval-notice {
    color: #cbd5e1;
    background: linear-gradient(135deg, #132322, #171d2b);
    border-color: #2a4548;
}

:root[data-theme="dark"] .account-approval-notice__title {
    color: #5eead4;
}

:root[data-theme="dark"] .account-approval-notice a {
    color: #7dd3fc;
}

:root[data-theme="dark"] .account-approval-notice__note {
    color: #94a3b8;
    border-top-color: rgba(148, 163, 184, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 575.98px) {
    .auth-hero {
        min-height: 340px;
    }

    .vine-login {
        margin-top: -200px;
    }

    .auth-card .card-body {
        padding: 1.75rem 1.35rem;
    }

    .auth-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-mascot {
        min-height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }

    .auth-back,
    .auth-submit,
    .auth-social .btn,
    .auth-card .form-control.auth-input {
        transition: none;
    }
}
