/* Body with Background Image */
body {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Auth Container */
.auth-container {
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 2rem;
    backdrop-filter: blur(5px); /* Frosted glass effect */
}

/* Logo Styling */
.logo {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 100px;
    height: auto;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="text"],
input[type="password"] {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 70%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    background-color: white;
}

/* Placeholder Styling */
::placeholder {
    color: #aaa;
    font-style: italic;
}

button,
.btn {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 70%;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover,
.btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d8c);
    transform: scale(1.05);
}

/* Error Messages */
.error {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #ffecec;
    border-radius: 5px;
    width: 70%;
    margin: 0 auto;
}

/* Back to Home Link */
.back-to-home a {
    text-decoration: none;
    color: #007BFF;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-to-home a:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .auth-container {
        padding: 1.5rem;
        margin: 1rem;
        backdrop-filter: none;
    }

    h1 {
        font-size: 1.8rem;
    }

    button,
    .btn {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    input[type="text"],
    input[type="password"] {
        width: 85%;
    }
}