/**
 * Estilos para a página de Login
 * Extraído de auth/login.blade.php para conformidade com DOMINIO-FUNCIONAL.md
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f1f5f9;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}


.login-wrapper {
    width: 100%;
    max-width: 750px;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: auto;
}

.login-container {
    display: flex;
    min-height: 420px;
}

.brand-section {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo no fundo da brand section */
.brand-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
    transform: rotate(45deg);
    pointer-events: none;
}

.brand-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-width: 250px;
    height: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

.brand-text {
    color: #f8fafc;
    margin-bottom: 1.5rem;
}

.brand-logo-text {
    margin-bottom: 0.8rem;
}

.brand-logo-text img {
    max-width: 160px;
    height: auto;
    filter: brightness(1.1);
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.4;
    text-align: center;
}

.brand-features {
    margin-top: 1.2rem;
    color: #94a3b8;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.feature-item i {
    margin-right: 0.75rem;
    color: #22d3ee;
    font-size: 1rem;
}

.form-section {
    flex: 0 0 60%;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.form-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.form-check-input {
    margin-right: 0.75rem;
    border-radius: 6px;
    border: 2px solid #d1d5db;
}

.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-label {
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.btn-login:disabled:hover {
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loading .btn-text {
    opacity: 0.7;
}

.forgot-password-container {
    text-align: center;
    margin-top: 1.2rem;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
    display: none; /* Ocultar alerts - usando toast */
}

/* Responsividade */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }
    
    .brand-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .form-section {
        padding: 2rem 1.5rem;
    }
    
    .logo-container img {
        max-width: 150px;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
    
    .brand-subtitle {
        font-size: 0.9rem;
    }
    
    .brand-features {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .login-wrapper {
        margin: 0;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .brand-section {
        padding: 1.5rem 1.2rem;
    }
    
    .form-section {
        padding: 1.5rem 1.2rem;
    }
    
    .form-title {
        font-size: 1.1rem;
    }
    
    .logo-container img {
        max-width: 240px;
    }
    
    .brand-subtitle {
        font-size: 0.85rem;
    }
}
