/* 1. Global Styles & Background */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Background Images */
    background-image:url('AussieReefsBackground.jpg');
    background-size: cover;
}

/* 2. Text styling for Index/Hero page */
.hero-content {
    text-align: center;
    color: white;
    margin-bottom: 60px;
    letter-spacing: -1px; /* Makes large text look a bit cleaner */
}

.hero-content h1 {
    font-size: 4.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 1; 
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.form-container {
    background: white;
    margin-top: 0px; /* Gives the logo space before the Welcome text starts */
    padding-top: 20px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    color: #333;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0850b4;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* 1. Base Button Styles (Common to both) */
.submit-btn, .login-btn {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
    border: none;
    font-family: inherit;
}

/* 2. Index Page "Hero" Button (The one with the coral background) */
.login-btn {
    background-color: white;
    color: #0850b4;
    padding: 15px 40px;
    font-weight: bold;
    border-radius: 30px; /* Pill shape */
    font-size: 1.1rem;
    margin-top: 20px;
    width: auto; /* Prevents it from being huge */
}

.login-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* 3. Login/Signup Page Buttons (Inside the white form) */
.submit-btn {
    width: 100%; /* Stretches to fill the white box */
    background: #0850b4;
    color: white;
    padding: 12px;
    border-radius: 8px; /* Blockier shape */
    font-size: 1rem;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #00609f;
    transform: translateY(-2px); /* Subtle lift for the form button */
}

.toggle-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

.toggle-link span {
    color: #4E69E4;
    cursor: pointer;
    font-weight: bold;
}

.hidden {
    display: none;
}

/* Logo Styling */
.logo-container {
    /* REMOVE position: absolute and top: 100px */
    margin-bottom: 20px; /* This creates a safe gap between logo and form */
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-container img {
    width: 200px; /* Adjust this to make the logo bigger or smaller */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); /* Adds depth */
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.1); /* Fun little pop when you hover */
}