/* CSS Específico para Login Admin - Baseado nas Imagens Kawruh */

/* Reset e configurações base */
.login-page {
    background: linear-gradient(135deg, #a8c5e6 0%, #e8f2ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Container principal */
.login-container {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

/* Header do login */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90e2, #6ba3f5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

.login-subtitle {
    color: #ff6b35;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.2;
}

.login-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #4a90e2;
    font-size: 1.1rem;
}

.form-group input {
    padding: 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #1a202c;
    min-height: 52px;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Estados de validação */
.form-group input.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.is-valid {
    border-color: #10b981;
    background: #f0fdf4;
}

.field-error {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    animation: slideDown 0.3s ease;
}

.field-error.show {
    display: block;
}

/* Botão de mostrar/ocultar senha */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4a90e2;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* Checkbox "Lembrar-me" */
.remember-me {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    color: #4a5568;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

/* Botão de login */
.btn-login {
    background: linear-gradient(135deg, #4a90e2, #6ba3f5);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

/* Link voltar */
.back-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.back-link a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #3b82f6;
    text-decoration: none;
    transform: translateX(-2px);
}

/* Mensagens de erro/sucesso */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #d97706;
}

.alert i {
    font-size: 1.2rem;
}

/* Segurança e informações */
.security-info {
    background: #e8f2ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    text-align: center;
}

.security-info h4 {
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-info p {
    color: #1e3a8a;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .login-page {
        padding: 15px;
    }
    
    .login-container {
        padding: 35px 25px;
        max-width: 100%;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.6rem;
    }
}

/* Estados de foco para acessibilidade */
.form-group input:focus,
.btn-login:focus,
.password-toggle:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Elementos decorativos */
.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(29, 78, 216, 0.05));
    animation: float 8s ease-in-out infinite;
}

.decoration-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}

.decoration-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: -75px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}
