/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #003876;
    --secondary-blue: #1351b4;
    --primary-green: #2e7d32;
    --hover-green: #256d29;
    --text-white: #ffffff;
    --text-gray: #666666;
    --border-color: #c4c4c4;
    --overlay-dark: rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
}

/* Accessibility Links */
.skip-links {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.skip-links a {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    color: var(--text-white);
    background: var(--primary-blue);
    padding: 10px;
    text-decoration: none;
}

.skip-links a:focus {
    position: static;
    width: auto;
    height: auto;
}

/* Header */
.header {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 120px);
    background-image: url('/background-login-page.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(19, 81, 180, 0.85) 0%, 
        rgba(19, 81, 180, 0.7) 40%,
        rgba(0, 56, 118, 0.75) 100%);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
}

.login-box {
    background: var(--text-white);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-box h2 {
    color: #1a1a1a;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.1);
}

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

.help-text {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--hover-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

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

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: #0d3f8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 81, 180, 0.4);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Form Links */
.form-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

.link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.link:hover {
    text-decoration: underline;
    color: #0d3f8f;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-link:hover {
    text-decoration: underline;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 2rem 1.5rem;
    }

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

    .subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 1rem;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

