/* ========== CSS VARIABLES - HWS DESIGN SYSTEM ========== */
:root {
    /* Cores Primárias */
    --hws-blue-50: #EFF6FF;
    --hws-blue-100: #DBEAFE;
    --hws-blue-200: #BFDBFE;
    --hws-blue-500: #2563EB;
    --hws-blue-600: #1D4ED8;
    --hws-blue-700: #1E40AF;
    
    /* Cores Secundárias */
    --hws-green-50: #ECFDF5;
    --hws-green-500: #10B981;
    --hws-green-600: #059669;
    
    /* Escala de Cinza */
    --hws-gray-50: #FAFAF9;
    --hws-gray-100: #F5F5F4;
    --hws-gray-200: #E7E5E4;
    --hws-gray-300: #D6D3D1;
    --hws-gray-500: #78716C;
    --hws-gray-600: #57534E;
    --hws-gray-700: #44403C;
    --hws-gray-900: #1C1917;
    
    /* Tipografia */
    --font-primary: 'Inter', sans-serif;
    
    /* Espaçamento */
    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    
    /* Transições */
    --transition-normal: 300ms;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--hws-blue-50) 0%, var(--hws-green-50) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    color: var(--hws-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== LAYOUT PRINCIPAL ========== */
.login-container {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s var(--ease-out);
}

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

/* ========== CARD ========== */
.login-card {
    background: white;
    border-radius: 16px;
    padding: var(--space-8);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 
                0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

/* ========== HEADER ========== */
.login-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.logo {
    width: 100px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--hws-gray-900);
    margin-bottom: var(--space-2);
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 16px;
    color: var(--hws-gray-600);
    line-height: 1.5;
}

/* ========== DIVIDER ========== */
.divider {
    display: flex;
    align-items: center;
    margin: var(--space-6) 0;
    gap: var(--space-4);
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--hws-gray-200);
}

.divider-text {
    font-size: 14px;
    color: var(--hws-gray-500);
    font-weight: 500;
}

/* ========== PROVIDER BUTTONS ========== */
.providers {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border: 2px solid var(--hws-gray-200);
    border-radius: 12px;
    background: white;
    color: var(--hws-gray-700);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-out);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.provider-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hws-blue-50) 0%, var(--hws-green-50) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal) var(--ease-out);
}

.provider-btn:hover::before {
    opacity: 1;
}

.provider-btn:hover {
    border-color: var(--hws-blue-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

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

.provider-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.provider-text {
    position: relative;
    z-index: 1;
}

/* Provider-specific colors */
.provider-btn.google:hover {
    border-color: #4285F4;
}

/* ========== FORM STYLES ========== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--hws-gray-700);
}

.form-input {
    padding: 12px 16px;
    border: 2px solid var(--hws-gray-200);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--hws-gray-900);
    transition: all var(--transition-normal) var(--ease-out);
}

.form-input:focus {
    outline: none;
    border-color: var(--hws-blue-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--hws-gray-500);
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hws-blue-500) 0%, var(--hws-green-500) 100%);
    color: white;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) var(--ease-out);
    margin-top: var(--space-2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-link {
    text-align: center;
    margin-top: var(--space-4);
    font-size: 14px;
    color: var(--hws-gray-600);
}

.register-link a {
    color: var(--hws-blue-600);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-normal) var(--ease-out);
}

.register-link a:hover {
    color: var(--hws-blue-700);
    text-decoration: underline;
}

.forgot-password-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--hws-blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal) var(--ease-out);
}

.forgot-password-link:hover {
    color: var(--hws-blue-700);
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.login-footer {
    margin-top: var(--space-8);
    text-align: center;
    font-size: 14px;
    color: var(--hws-gray-500);
}

.login-footer a {
    color: var(--hws-blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal) var(--ease-out);
}

.login-footer a:hover {
    color: var(--hws-blue-700);
    text-decoration: underline;
}

/* ========== TRUST BADGES ========== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--hws-gray-200);
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hws-gray-600);
    font-weight: 500;
}

.badge-icon {
    color: var(--hws-green-500);
    font-size: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .login-card {
        padding: var(--space-6);
    }

    .login-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 15px;
    }

    .provider-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ========== ERROR MESSAGE ========== */
.error-message {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #DC2626;
    font-size: 14px;
    animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.hidden {
    display: none;
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for accessibility */
.provider-btn:focus-visible {
    outline: 3px solid var(--hws-blue-500);
    outline-offset: 2px;
}

