/* Hamilton Dashboard - Login Page Styles */
:root {
    /* Color Scheme from color_scheme.txt */
    --primary-green: #a3cc94;
    --dark-green: #5e8941;
    --light-green: #9bb589;
    --brown-gray: #6c6a55;
    --dark-brown: #545641;
    --sage-green: #86a470;
    --medium-gray: #737064;
    --bright-green: #94c474;
    --mint-green: #9cbc7c;
    --forest-green: #74ac64;
    
    /* Additional UI Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #e0e0e0;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Status Colors */
    --status-online: #4caf50;
    --status-warning: #ff9800;
    --status-error: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--sage-green) 50%, var(--primary-green) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(163, 204, 148, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(148, 196, 116, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px var(--shadow);
    width: 100%;
    max-width: 450px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--bright-green), var(--forest-green));
    border-radius: 20px 20px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(163, 204, 148, 0.3);
}

.login-header h1 {
    color: var(--dark-green);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(163, 204, 148, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    z-index: 1;
}

.form-group:has(label) .input-icon {
    top: calc(50% + 12px);
}

.toggle-password {
    left: auto;
    right: 18px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-green);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.checkbox-container input:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--dark-green);
}

.login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-green), var(--bright-green));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(163, 204, 148, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(163, 204, 148, 0.4);
    background: linear-gradient(135deg, var(--bright-green), var(--forest-green));
}

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

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-right {
    display: flex;
    align-items: center;
}

.login-footer p {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-left p {
    margin-bottom: 8px;
}

.footer-right p {
    margin-bottom: 0;
    font-size: 11px;
}

.login-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-right a {
    font-size: 11px;
    margin-left: 4px;
}

.login-footer a:hover {
    color: var(--dark-green);
}

.background-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 320px;
}

.info-card,
.quick-stats {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-card h3,
.quick-stats h3 {
    color: var(--dark-green);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-online {
    color: var(--status-online);
}

.fa-wifi {
    color: var(--primary-green);
}

.fa-shield-alt {
    color: var(--forest-green);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(163, 204, 148, 0.1);
    border-radius: 8px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Animation */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .background-info {
        grid-row: 1;
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .background-info {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .info-card,
    .quick-stats {
        padding: 20px 16px;
    }
    
    .login-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
}
