/* Use esta versão mais específica e com !important */
.navbar.navbar-purple {
    background-color: #4a148c !important;
}

/* ===== ESTILOS PARA TELA DE LOGIN DO ALUNO ===== */

/* Reset e configurações globais */
.student-login {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    position: relative;
    overflow: hidden;
}

/* Efeito de partículas de fundo */
.student-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(74, 20, 140, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(106, 27, 154, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(1deg); }
    66% { transform: translateY(-20px) rotate(-1deg); }
}

/* Container principal */
.student-login .container {
    position: relative;
    z-index: 1;
}

/* Card de login */
.student-login .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.student-login .card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Header do card */
.student-login .card-body {
    padding: 3rem 2.5rem;
}

.student-login h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.student-login .text-muted {
    color: #64748b !important;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Ícone de segurança */
.student-login .security-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(74, 20, 140, 0.3);
}

.student-login .security-icon i {
    font-size: 2rem;
    color: white;
}

/* Campos de formulário */
.student-login .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.student-login .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.student-login .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #4a148c;
    box-shadow: 
        0 0 0 3px rgba(74, 20, 140, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.student-login .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Input groups */
.student-login .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.student-login .input-group-text {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #718096;
    padding: 0.875rem 1rem;
}

.student-login .input-group .form-control {
    border-left: none;
    border-radius: 0;
    border-right: none;
}

.student-login .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: #718096;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.student-login .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #4a148c;
    color: #4a148c;
}

.student-login .input-group:focus-within .input-group-text,
.student-login .input-group:focus-within .btn-outline-secondary {
    border-color: #4a148c;
    background: rgba(255, 255, 255, 0.95);
}

.student-login .input-group:focus-within .btn-outline-secondary {
    color: #4a148c;
}

/* Botão principal */
.student-login .btn-primary {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.4);
    position: relative;
    overflow: hidden;
}

.student-login .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 20, 140, 0.5);
}

.student-login .btn-primary:active {
    transform: translateY(0);
}

.student-login .btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.student-login .btn-primary .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Alertas */
.student-login .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.student-login .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

/* Links */
.student-login a {
    color: #4a148c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.student-login a:hover {
    color: #6a1b9a;
    text-decoration: underline;
}

/* Divisor */
.student-login hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

/* Versão */
.student-login .text-muted small {
    color: #9ca3af !important;
    font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .student-login .card-body {
        padding: 2rem 1.5rem;
    }
    
    .student-login h2 {
        font-size: 2rem;
    }
    
    .student-login .security-icon {
        width: 60px;
        height: 60px;
    }
    
    .student-login .security-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .student-login .card-body {
        padding: 1.5rem 1rem;
    }
    
    .student-login h2 {
        font-size: 1.75rem;
    }
}