body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg,#001736,#8aa8e4);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 30px;
    width: 90%;            /* Make it flexible on small screens */
    max-width: 360px;      /* Keep your perfect desktop size */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logo {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

input {
    width: 100%; /* This should now work correctly */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box; /* CRITICAL FIX: Includes padding and border in the element's total width */
}

button {
    width: 100%;
    padding: 12px;
    background: #2c7be5;
    border: none;
    color: white;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #1a68d1;
}

.error {
    background: #ffe0e0;
    color: #a30000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.register {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register a {
    color: #2c7be5;
    text-decoration: none;
}

/* Added Media Query for Mobile Responsiveness */
@media (max-width: 480px) { /* Adjust this breakpoint if needed */
    .login-container {
        width: 80%; /* Keep it flexible */
        max-width: none; /* Remove max-width on small screens */
        padding: 30px 20px; /* Slightly less padding horizontally */
    }
    .logo {
        font-size: 28px; /* Slightly smaller logo on mobile */
    }
    .subtitle {
        font-size: 14px; /* Smaller subtitle */
    }
}
