/* --- Login Page Specific Styles --- */

/* Ensure login content is centered vertically and horizontally */
body {
    background-color: #1a4269; /* Dark blue background for the login page */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* Padding for mobile view */
    position: relative;
    overflow: hidden; /* Hide floating elements outside the view */
}

/* --- Login Card Container --- */
.login-wrapper {
    position: relative;
    z-index: 10; /* Ensure the form is above the animated background */
    width: 100%;
    max-width: 400px; /* Max width for the login form */
}

.login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    height: 60px;
    margin-bottom: 10px;
}

.login-header h2 {
    color: #1a4269;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

/* --- Form Styles --- */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a4269;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #ff8c00;
    outline: none;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    color: #007bff;
}

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

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    /* Inherits background from .btn-primary in styles.css */
}

.back-link {
    margin-top: 20px;
}

.back-link a {
    color: #1a4269;
    font-weight: 500;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
}

.back-link a:hover {
    background-color: #f0f0f0;
}

/* --- Floating Animation --- */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.8;
    }
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white shapes */
    border-radius: 50%; /* Circle shape */
    animation: float 15s infinite ease-in-out alternate;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-duration: 18s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 5%;
    right: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-duration: 20s;
    animation-delay: 4s;
}

/* Mobile responsiveness for login page */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
