/* ===================================
   LOGIN PAGE STYLES
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   LOGIN CONTAINER
=================================== */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 80px);
}

/* ===================================
   LOGIN FORM
=================================== */
.login-form {
    background: white;
    padding: 45px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.4s ease-out;
    margin-top: 100px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form h2 {
    text-align: center;
    color: #2a5298;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* ===================================
   ERROR MESSAGE
=================================== */
.error-msg {
    background: #fee;
    color: #c33;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #fcc;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===================================
   FORM GROUP
=================================== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #f9f9f9;
}

.form-group input:focus {
    outline: none;
    border-color: #2a5298;
    background: white;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* ===================================
   SUBMIT BUTTON
=================================== */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #152a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===================================
   FORGOT PASSWORD LINK
=================================== */
.forgot-password {
    text-align: center;
    margin-top: 18px;
}

.forgot-password a {
    color: #2a5298;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 500;
}

.forgot-password a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* ===================================
   CREATE ACCOUNT SECTION
=================================== */
.create-account {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.btn-create {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #2a5298;
    border: 2px solid #2a5298;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-create:hover {
    background: #2a5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 15px;
        min-height: calc(100vh - 60px);
    }

    .login-form {
        padding: 35px 30px;
    }

    .login-form h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 10px;
    }

    .login-form {
        padding: 30px 25px;
    }

    .login-form h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input {
        padding: 12px;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 13px;
        font-size: 0.95rem;
    }

    .btn-create {
        padding: 11px 25px;
        font-size: 0.9rem;
    }
}
/* Focus visible for accessibility */
.form-group input:focus-visible,
.btn-submit:focus-visible,
.btn-create:focus-visible {
    outline: 3px solid rgba(42, 82, 152, 0.3);
    outline-offset: 2px;
}

/* Loading state (optional - can be used with JS) */
.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled:hover {
    box-shadow: none;
}