/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

:root {
    --primary-color: #FF7226;
    --primary-hover: #e65b0f;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo Header Styling */
header {
    position: 0px auto; /* Fix the header at the top */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    padding: 15px 0; /* Space for logo */
    text-align: center; /* Center the logo */
    z-index: 1000; /* Keep it on top */
}

header .logo {
    width: 300px; /* Set logo width */
    height: auto; /* Maintain aspect ratio */
}
/* Footer Styling */
footer {
    background-color: #333; /* Dark background */
    color: white; /* White text */
    text-align: center;
    padding: 15px 0;
    position: auto; /* Always at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: #FF7226; /* Button color for links */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Login container styles */
.login-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    margin: auto;
    margin-top: 100px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    padding: 0.8rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 114, 38, 0.1);
}

input::placeholder {
    color: #999;
}

button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Error message styles */
p {
    color: red;
    text-align: center;
    margin-top: 1rem;
    font-size: 12px;
}



/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 2rem;
        margin-top: 80px;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }

    input, button {
        padding: 0.7rem;
    }
}

/* Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}