/* ===== FleetCheck Login v1.0 - CSS ===== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-soft: 0 4px 20px rgba(102, 126, 234, 0.2);
    --shadow-medium: 0 8px 30px rgba(102, 126, 234, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.header-container {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.version-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-gradient);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.system-title {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.system-subtitle {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-left: 4px;
}

.form-input {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: var(--transition-smooth);
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.login-button {
    margin-top: 12px;
    padding: 16px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.35);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    padding: 14px 16px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #fca5a5;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.footer-info {
    margin-top: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.powered-by {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.copyright {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Responsivo */
@media (max-width: 480px) {
    .login-container {
        padding: 36px 28px;
    }
    
    .system-title {
        font-size: 28px;
    }
    
    .system-subtitle {
        font-size: 13px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .login-button {
        padding: 14px 20px;
        font-size: 14px;
    }
}

.logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
}

@media (max-width: 480px) {
    .logo {
        max-width: 140px;
        margin-bottom: 12px;
    }
}