/* Custom variables for color harmony */
:root {
    --primary-color: #143d59;
    --primary-light: #1e5c85;
    --accent-color: #f7f30c;
    --accent-hover: #e0dd0b;
    --error-bg: #fdf2f2;
    --error-text: #de2b2b;
    --error-border: #fbd5d5;
    --bg-gradient: #ffffff;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.6s ease-out;
}

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

.login-header {
    margin-bottom: 32px;
    text-align: center;
    width: 100%;
}

.logo-img {
    max-width: 100%;
    width: 440px;
    height: auto;
}

.login-container {
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-form {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-form h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.error-alert {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.error-alert svg {
    flex-shrink: 0;
}

.input-group {
    margin-bottom: 18px;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    color: var(--text-color);
    outline: none;
    transition: all 0.25s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(20, 61, 89, 0.15);
}

.btn-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(20, 61, 89, 0.2);
}

.btn-submit:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 61, 89, 0.3);
}

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

/* Fallback selectors for compatibility */
header {
    margin-bottom: 24px;
    text-align: center;
}
form {
    border: none;
    background: none;
}
input {
    display: block;
}
button {
    cursor: pointer;
}
.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: block;
    text-align: center;
    font-weight: 500;
}
a {
    text-decoration: none;
}
