@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&family=Michroma&family=Space+Grotesk:wght@300..700&display=swap');

/* Font Sets - Updated to use new fonts */
:root {
    --primary-color: #FFD700;
    --text-color: #333333; /* Changed from white to dark gray */
    --heading-font: 'Michroma', sans-serif;
    --body-font: 'M PLUS 1', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--body-font);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    color: #333333; /* Dark text for body */
    padding-top: env(safe-area-inset-top); /* Adjusts for the status bar */
    background: #6225E6; /* Or whatever blue color matches your design */
    min-height: -webkit-fill-available;
}


/* Adjust scroll padding to account for fixed nav */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Slightly more than nav height */
    height: -webkit-fill-available;
}

/* Background Video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Modern browsers */
    z-index: -1;
    margin-top: calc(0px - env(safe-area-inset-top)); /* iOS notch */
    margin-top: calc(0px - constant(safe-area-inset-top)); /* iOS fallback */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* For Android browsers that support display-cutout */
@supports (padding-top: env(safe-area-inset-top)) {
    .video-background {
        padding-top: env(safe-area-inset-top);
        height: calc(100vh + env(safe-area-inset-top));
    }
}

/* For older Android browsers */
@supports not (padding-top: env(safe-area-inset-top)) {
    .video-background {
        height: 100vh;
    }
}



/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 2rem 1rem;
    position: relative;
    margin-top: 0; /* Remove negative margin */
}

/* Auth Card - Updated for better spacing */
.auth-card {
    background: #ffffffe6;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: auto;
    position: relative;
}

/* Logo container and adjustments */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo {
    height: 50px;
    margin-bottom: 0.5rem;
    display: block;
}

.beta-label {
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--heading-font);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

/* Auth Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
    margin-top: calc(0px - env(safe-area-inset-top));
    margin-top: calc(0px - constant(safe-area-inset-top)); /* iOS fallback */
}


.auth-card {
    background: #ffffffe6;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    padding: 1.5rem;
    text-align: center;
    color: #333333; /* Ensure text is dark in the card */
}

/* Ensure all headings have dark text */
.auth-card h1, .auth-card h2, .auth-card h3, .auth-card h4, .auth-card h5, .auth-card h6 {
    color: #333333;
    margin-bottom: 1rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    color: #777;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #000;
    border-bottom: 2px solid #000;
    font-weight: bold;
}

.auth-content {
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

/* Error message styling */
.auth-error {
    background-color: rgba(219, 68, 55, 0.1);
    border: 1px solid #DB4437;
    border-left: 4px solid #DB4437;
    padding: 12px 15px;
    margin: 0 10px 20px 10px;
    border-radius: 4px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.auth-error p {
    color: #DB4437;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

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

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* New form elements styling */
.form-label {
    font-weight: bold;
    color: #333333;
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.form-value {
    display: block;
    text-align: left;
    padding: 0.5rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333333;
    margin-bottom: 0.5rem;
}

.form-hint {
    display: block;
    text-align: left;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.auth-button {
    width: 100%;
    padding: 10px 25px;
    background: rgba(98, 37, 230, 0.8);
    color: white; /* Keep white text for buttons */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 14px;
    font-family: var(--heading-font);
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.auth-button:hover {
    background: rgba(98, 37, 230, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.forgot-password {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.forgot-password a {
    color: #555;
    text-decoration: none;
}

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

.social-auth {
    margin-top: 2rem;
}

.social-auth p {
    margin-bottom: 1rem;
    color: #555;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    color: white; /* Keep white text for social buttons */
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.social-button:hover {
    opacity: 0.9;
}

.social-button img {
    height: 24px;
    margin-right: 10px;
}

.google {
    background: #DB4437;
}

.facebook {
    background: #4267B2;
}

.register-message {
    margin-bottom: 2rem;
    color: #555;
}


/* Back to Home Button */
.back-home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    text-decoration: none;
    color: white; /* Keep white text for back button */
    background: #757575;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s ease;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.back-home-button span {
    margin-right: 10px;
}

.back-home-button svg {
    transition: transform 0.3s ease;
}

.back-home-button:hover {
    background: #333;
}

.back-home-button:hover svg {
    transform: translateX(5px);
}

/* Text button style for resend code button */
.text-button {
    background: none;
    border: none;
    color: #6225E6;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin: 0;
}

.text-button:hover {
    color: #4a1bb3;
}

/* Message styles */
.message {
    background-color: rgba(0, 150, 90, 0.1);
    border: 1px solid #00965a;
    border-left: 4px solid #00965a;
    padding: 12px 15px;
    margin: 0 10px 20px 10px;
    border-radius: 4px;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message p {
    color: #00965a;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* Resend code section */
.resend-code {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* Form check for terms and conditions */
.form-check {
    display: flex;
    align-items: start;
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

.form-check label {
    font-size: 0.9rem;
    color: #555;
}

.form-check a {
    color: #6225E6;
    text-decoration: none;
}

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

/* Login link styling */
.login-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.login-link a {
    color: #6225E6;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }

    /* Update back-home-button positioning */
    .back-home-button {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* For devices with notches/safe areas */
@supports (padding: env(safe-area-inset-top)) {
    .auth-container {
        padding-top: calc(2rem + env(safe-area-inset-top));
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}


/* Responsive styles for back button */
@media (max-width: 768px) {
    .back-home-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .back-home-button svg {
        width: 28px;
        height: 28px;
    }
}

/* Verification code styling */
.verification-code-display {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    letter-spacing: 2px;
    margin: 15px 0;
    border: 1px dashed #6225E6;
}