/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Sticky Header Styling */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: orange;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center; /* Centers the logo */
    align-items: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Keeps the header on top */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(90deg, #000000, #ff0000, #008000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.signup-logo {
    max-width: 200px; /* Adjust the size of the logo */
    height: auto;
    margin-right: 1rem;
}

/* Move Login Button to the Left */
.auth-buttons {
    position: absolute; /* Use absolute positioning */
    left: 2rem; /* Adjust the space to the left of the screen */
    top: 50%; /* Vertically center */
    transform: translateY(-50%); /* Adjust the button to be centered vertically */
}

.auth-buttons .btn {
    background-color: #fff;
    color: #ff6f00;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.auth-buttons .btn:hover {
    background-color: #f2f2f2;
}

/* Adjust padding for content to avoid overlap with the sticky header */
body {
    padding-top: 80px; /* Height of the header */
}

/* Form Section */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-top: 20px; /* Additional space for better layout */
}

.form-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.form-section h2 {
    font-size: 2rem;
    color: #ff6f00;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Inputs */
form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

form input:focus {
    border-color: #ff6f00;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 111, 0, 0.5);
}

/* Submit Button */
.cta-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #ff6f00;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #f57c00;
}

/* Loader */
.loader {
    width: 30px;
    height: 30px;
    border: 4px solid #ddd;
    border-top: 4px solid #ff6f00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Box */
.message {
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    text-align: center;
    border-radius: 4px;
}

.message.success {
    color: #2e7d32;
    background-color: #e8f5e9;
}

.message.error {
    color: #d32f2f;
    background-color: #ffebee;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .signup-logo {
        display: block;
        margin: 0 auto 20px; /* Centers the logo and adds spacing below */
        max-width: 150px;    /* Adjust the width as needed */
        height: auto;        /* Maintains aspect ratio */
    }
}