/* Minimal CSS for Login Page - No external library references */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Headings use Space Grotesk */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Base styles */
:root {
    --primary-color: #ff2828;
    /* Cherry red */
    --accent-color: #1f1e1e;
    /* Dark grey */
    --accent-strong: #111111;
    --text-color: #333333;
    --muted-text-color: #5f646f;
    --error-color: #dc3545;
    --success-color: #28a745;
    --border-color: #e6e6e6;
    --background-color: #f8f9fa;
    --panel-border: rgba(16, 24, 40, 0.08);
    --focus-ring: rgba(207, 1, 6, 0.16);
    --field-bg: #fbfcfe;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    background: #ffffff;
}

a {
    text-decoration: none;
}

/* Disable page-level footer on login */
.footer,
footer,
.footer-privacy,
.footer-content,
.footer-section,
.footer-bottom,
.social-links,
.social-link {
    display: none !important;
}

/* Login page specific styles */
.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
}

/* Login page logos */
.splash-logo-screen {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-img {
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.auth-header-logo {
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
}

.auth-box {
    background: #fff;
    padding: 3rem 3.2rem;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    position: relative;
}

.auth-page h1 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Form styles */
.auth-page .auth-form {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 370px;
}

.auth-page .form-group {
    margin-bottom: 1.2rem;
}

.auth-page .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.auth-page .form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .auth-page .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.auth-page label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.94rem;
}

.auth-page .form-group.floating-group {
    position: relative;
    margin-bottom: 2rem;
}

.auth-page .form-group.floating-group input {
    width: 100%;
    padding: 1.6rem 1rem 0.6rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    height: 3.5rem;
}

.auth-page .form-group.floating-group input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(207, 1, 6, 0.15);
}

.auth-page .form-group.floating-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 0.2rem;
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left top;
    z-index: 10;
}

/* Floating state */
.auth-page .form-group.floating-group input:focus~label,
.auth-page .form-group.floating-group input:not(:placeholder-shown)~label {
    top: 0.8rem;
    transform: scale(0.8);
    color: var(--accent-strong);
    font-weight: 600;
}

/* Password input specific */
.auth-page .password-input {
    position: relative;
    width: 100%;
}

.auth-page .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 20;
}



.auth-page .eye-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.auth-page .toggle-password:hover .eye-icon {
    color: var(--accent-color);
}

/* Form options */
.auth-page .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.auth-page .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-text-color);
}

.auth-page .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #b9bcc6;
    background: #fff;
    box-shadow: none;
    accent-color: #cf0106;
}

.auth-page .forgot-password {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 600;
}

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

/* Buttons */
.auth-page .btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #cf0106, #ff3838);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(207, 1, 6, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(207, 1, 6, 0.26);
}

.social-auth-section {
    width: 100%;
    max-width: 370px;
    margin: 0 auto 1.5rem;
}

.social-auth-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-auth-btn {
    position: relative;
    width: 58px;
    height: 58px;
    padding: 0;
    border: none;
    border-radius: 18px;
    background: #ffffff;
    color: var(--accent-strong);
    appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
    border-color: #c5ccd8;
}

.social-auth-btn:disabled {
    cursor: wait;
    opacity: 0.85;
}

.social-auth-btn-apple {
    cursor: pointer;
}

.social-auth-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
}

.social-auth-google-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.01;
    cursor: pointer;
}

.social-auth-google-overlay>div,
.social-auth-google-overlay iframe {
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
}

.social-auth-form {
    display: none;
}

.social-auth-divider {
    position: relative;
    text-align: center;
    margin: 1.35rem 0 0;
}

.social-auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e7ebf1;
}

.social-auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.85rem;
    background: #fff;
    color: #8891a1;
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.1rem;
    padding: 0.6rem 0 0;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

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

.auth-copyright {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

/* Error message */
.auth-page .error-message {
    background: #fde8e8;
    color: var(--error-color);
    padding: 0.9rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Single column layout (e.g., Verify OTP) */
.auth-container.single-column {
    max-width: 450px;
    align-items: center;
    min-height: unset; /* Allow vertical centering */
}

.auth-container.single-column .auth-box {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 2rem 2.5rem;
}

.auth-container.single-column .auth-header {
    display: block;
    text-align: center;
}

.auth-container.single-column .auth-header-logo {
    margin: 0 auto 1rem;
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

/* Verification specific styles */
.verification-message {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--muted-text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.verification-message strong {
    color: var(--accent-strong);
    font-weight: 600;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary-color);
}

.resend-btn {
    margin-left: 5px;
}

/* Two-column layout for login page */
.auth-container.two-column {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.auth-media-slider {
    flex: 1;
    align-self: stretch;
    background: linear-gradient(165deg, #171717 0%, #050505 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    min-width: 0;
    padding: 0;
}

.auth-container.two-column .auth-box {
    flex: 1;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 0;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: -0.02em;
    margin: 0;
}

.auth-box .auth-form {
    max-width: 370px;
    margin: 0 auto;
}

.auth-box .form-group input {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Media slider styles */
.phone-frame {
    position: relative;
    width: 248px;
    height: 518px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.media-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.45s ease-in-out;
    opacity: 0;
}

.media-slide.active {
    display: block;
    opacity: 1;
    position: relative;
}

.media-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.35s ease;
    transform: scale(1.03);
}

.media-slide img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Loading spinner for slider */
.slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.media-slider-controls {
    position: relative;
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    margin-top: 1.3rem;
    z-index: 2;
}

.media-slider-btn {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.media-slider-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.mobile-scroll-button {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 30;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.9);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.mobile-scroll-button:hover {
    transform: translateY(-2px);
    background: rgba(17, 17, 17, 0.96);
}

.mobile-scroll-button.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.mobile-scroll-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive design */
@media (max-width: 900px) {
    .auth-container.two-column {
        flex-direction: column;
        min-height: unset;
        max-width: none;
        border-radius: 0;
        gap: 0;
    }

    .auth-media-slider {
        min-height: 100vh;
        min-height: 100dvh;
        padding:
            max(1rem, env(safe-area-inset-top))
            1rem
            max(1.5rem, env(safe-area-inset-bottom));
        justify-content: center;
    }

    .auth-container.two-column .auth-box {
        min-height: auto;
        padding: 2rem 1.25rem 2.5rem;
        border-left: 0;
        border-top: 0;
    }

    .auth-box .auth-form {
        max-width: 100%;
    }

    .phone-frame {
        width: min(100%, 320px);
        height: auto;
        aspect-ratio: 248 / 518;
        max-height: calc(100dvh - 7.5rem);
    }

    .mobile-scroll-button {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .auth-page .auth-box {
        padding: 1.2rem;
    }

    .auth-page h1 {
        font-size: 1.5rem;
    }

    .auth-page .form-options {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .social-auth-divider span {
        font-size: 0.76rem;
        letter-spacing: 0.05em;
    }

    .social-auth-btn {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .social-auth-icon {
        width: 20px;
        height: 20px;
    }

    .auth-container.two-column {
        border-radius: 0;
    }

    .auth-container.two-column .auth-box {
        padding: 1.25rem 1rem 2rem;
    }

    .phone-frame {
        width: min(100%, 300px);
        max-height: calc(100dvh - 7rem);
    }

    .auth-header-logo {
        width: 64px;
        height: 64px;
    }

    .mobile-scroll-button {
        right: 0.85rem;
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
    }
}
