/*
 * ========= Auth & Contact Pages (Shared Styles) =========
 * Files: sign_up.html, log_in.html, contact_us.html
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* In static/auth_contact_styles.css */

html {
    /* Set the base for vertical scrolling */
    min-height: 100vh;
    box-sizing: border-box; /* Set global box-sizing for predictable sizing */
}

*, *::before, *::after {
    /* Apply box-sizing to all elements for consistency */
    box-sizing: inherit; 
}

body {
    margin: 0;
    padding: 0;
    
    /* CRITICAL FIX: Allow scrolling only vertically, prevent horizontal overflow */
    overflow-x: hidden; 
    overflow-y: auto; 
    
    /* Ensure the body is at least the viewport height */
    min-height: 100vh;
    
    /* The rest of your existing body styles */
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    
    /* ADD/CONFIRM: Set a solid dark base color to prevent white flashes */
    background-color: #000000; 
}

/* Background Image Rotation Animation */
body {
    animation: background-cycle 35s infinite ease-in-out; /* 5s per image x 7 images = 35s */
}

@keyframes background-cycle {
    /* Image 1 (0% to 12.5%) */
    0%, 12.5% { background-image: url('png/1.png'); } 
    
    /* Image 2 (12.51% to 25%) */
    12.51%, 25% { background-image: url('png/2.png'); } 
    
    /* Image 3 (25.01% to 37.5%) */
    25.01%, 37.5% { background-image: url('png/3.png'); } 
    
    /* Image 4 (37.51% to 50%) */
    37.51%, 50% { background-image: url('png/4.png'); } 
    
    /* Image 5 (50.01% to 62.5%) */
    50.01%, 62.5% { background-image: url('png/5.png'); } 
    
    /* Image 6 (62.51% to 75%) */
    62.51%, 75% { background-image: url('png/6.png'); } 
    
    /* Image 7 (75.01% to 87.5%) */
    75.01%, 87.5% { background-image: url('png/7.png'); } 
    
    /* Image 8 (87.51% to 100%) - Cycles back to 0% */
    87.51%, 100% { background-image: url('png/8.png'); } 
}


/* Central Content Container - Smooth and Elegant */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.auth-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid cyan;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-box h1 {
    font-size: 2.5em;
    color: #ff0000;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
    margin-bottom: 30px;
}

/* Input Fields - User Friendly and Themed */
.auth-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group textarea { /* Added textarea here */
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical; /* Allow vertical resizing for textarea */
}

.auth-form-group input:focus,
.auth-form-group textarea:focus {
    border-color: cyan;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    outline: none;
}

/* Buttons - Consistent with your existing CTA */
.auth-button {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.auth-button:hover {
    background-color: #0056b3;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.back-link {
    display: block;
    margin-top: 25px;
    color: cyan;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white;
    text-decoration: underline;
}