/* =============================================
   AngoSchool Report - Login
   Tema luminoso com identidade Indigo/Roxo
   Paleta: #4338ca, #6366f1, #7c3aed, #a78bfa
   ============================================= */

/* Font imports */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ===== Variaveis ===== */
:root {
    --sige-primary: #4338ca;
    --sige-primary-hover: #3730a3;
    --sige-primary-active: #312e81;
    --sige-blue: linear-gradient(135deg, #6366f1, #4338ca);
    --radius-md: 10px;
    --transition-normal: all 0.2s ease;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-bg-strong: rgba(255, 255, 255, 0.96);
    --glass-border: rgba(99, 102, 241, 0.15);
    --glass-border-hover: rgba(99, 102, 241, 0.3);
    --input-border: rgba(99, 102, 241, 0.2);
    --input-border-focus: rgba(99, 102, 241, 0.5);
    --input-bg: rgba(245, 243, 255, 0.7);
    --input-bg-focus: #ffffff;
    --input-text: #1e1b4b;
    --input-placeholder: rgba(100, 100, 140, 0.5);
    --input-ring: rgba(99, 102, 241, 0.2);
    --input-ring-size: 3px;
    --input-radius: 10px;
    --input-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SIGE Form Components (compatibilidade) ===== */

.sige-form-group {
    margin-bottom: 10px;
}

.sige-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #312e81;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.sige-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--input-radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--input-text);
    background: var(--input-bg);
    transition: var(--input-transition);
}

.sige-form-input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 var(--input-ring-size) var(--input-ring);
}

.sige-form-input::placeholder {
    color: var(--input-placeholder);
    font-weight: 400;
}

/* Checkbox toggle */
.sige-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.sige-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sige-checkbox-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 22px;
    transition: var(--transition-normal);
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.sige-checkbox-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-normal);
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.2);
}

.sige-checkbox:checked + .sige-checkbox-toggle {
    background: linear-gradient(135deg, #7c3aed, #4338ca);
    border-color: rgba(124, 58, 237, 0.5);
}

.sige-checkbox:checked + .sige-checkbox-toggle::after {
    transform: translateX(18px);
}

.sige-checkbox:focus + .sige-checkbox-toggle {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sige-checkbox-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
}

/* ===== Background & Overlay ===== */

@keyframes loginKenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    25%  { transform: scale(1.08) translate(-1%, 1%); }
    50%  { transform: scale(1.12) translate(0.5%, -0.5%); }
    75%  { transform: scale(1.06) translate(1%, 0.5%); }
    100% { transform: scale(1)    translate(0, 0); }
}

@keyframes loginGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-bg-animated {
    position: fixed;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: loginKenBurns 25s ease-in-out infinite;
    z-index: 0;
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.72), rgba(99, 102, 241, 0.60), rgba(124, 58, 237, 0.55), rgba(59, 130, 246, 0.50));
    background-size: 300% 300%;
    animation: loginGradientShift 12s ease-in-out infinite;
    z-index: 0;
}

.login-overlay::before,
.login-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.login-overlay::before {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%);
    top: 8%;
    left: 5%;
    animation: loginFloatOrb 8s ease-in-out infinite;
}

.login-overlay::after {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    bottom: 10%;
    right: 6%;
    animation: loginFloatOrb2 10s ease-in-out infinite 2s;
}

@keyframes loginFloatOrb {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50%      { transform: translateY(-25px) scale(1.1); opacity: 0.9; }
}

@keyframes loginFloatOrb2 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50%      { transform: translateY(18px) scale(0.9); opacity: 0.8; }
}

/* ===== Floating Data Icons ===== */

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
    50%      { transform: translateY(-18px) rotate(8deg); opacity: 0.6; }
}

.report-floating-icons {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.report-float-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    animation: floatIcon 6s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(67, 56, 202, 0.3));
}

.report-float-icon:nth-child(2) { font-size: 1.6rem; }
.report-float-icon:nth-child(3) { font-size: 2.2rem; animation-duration: 7s; }
.report-float-icon:nth-child(4) { font-size: 1.4rem; animation-duration: 8s; }
.report-float-icon:nth-child(5) { font-size: 1.8rem; animation-duration: 5s; }
.report-float-icon:nth-child(6) { font-size: 1.5rem; animation-duration: 9s; }

/* ===== Container ===== */

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== Glass Card (Luminoso) ===== */

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

.report-login-glass {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    padding: 36px 32px 28px;
    box-shadow:
        0 24px 64px rgba(67, 56, 202, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    overflow: hidden;
}

/* Brilho subtil no topo */
.report-login-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), rgba(124, 58, 237, 0.5), transparent);
    animation: borderGlow 3s ease-in-out infinite;
    border-radius: 2px;
}

/* ===== Header / Brand ===== */

.report-login-header {
    text-align: center;
    margin-bottom: 4px;
}

.report-login-logo-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
}

.report-login-logo-wrap img {
    width: 64px;
    height: 64px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(67, 56, 202, 0.2));
    position: relative;
    z-index: 1;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.4); opacity: 0; }
}

.report-login-logo-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.4);
    animation: logoPulse 3s ease-in-out infinite;
}

.report-login-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e1b4b;
    letter-spacing: 0.5px;
    margin: 0;
}

.report-login-header h1 span {
    font-weight: 300;
    color: #6366f1;
}

@keyframes shimmerTag {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.report-login-tagline {
    font-size: 0.78rem;
    margin-top: 4px;
    background: linear-gradient(90deg, #475569, #6366f1, #7c3aed, #475569);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerTag 5s linear infinite;
    font-weight: 500;
}

/* ===== Divider ===== */

.report-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.report-login-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.report-login-divider-icons {
    display: flex;
    gap: 10px;
    color: rgba(99, 102, 241, 0.4);
    font-size: 0.7rem;
}

/* ===== Saved User Box ===== */

.report-saved-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(124, 58, 237, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    margin-bottom: 16px;
    animation: cardReveal 0.4s ease both;
    animation-delay: 0.2s;
}

.report-saved-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.1);
}

.report-saved-info {
    flex: 1;
    min-width: 0;
}

.report-saved-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e1b4b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-saved-info small {
    display: block;
    font-size: 0.72rem;
    color: #6366f1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.report-saved-switch {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    color: #6366f1;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.report-saved-switch:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.3);
}

/* ===== Form Area ===== */

.report-login-form-area {
    margin-bottom: 8px;
}

.report-login-form-header {
    margin-bottom: 16px;
}

.report-login-form-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0;
}

.report-login-form-header p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

/* Form groups com icone */
.report-form-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.report-input-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    color: #6366f1;
    font-size: 0.82rem;
    flex-shrink: 0;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.report-form-group:focus-within .report-input-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(124, 58, 237, 0.15));
    border-color: rgba(99, 102, 241, 0.3);
    color: #4338ca;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.report-input-wrap {
    flex: 1;
}

.report-input-wrap label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.report-glass-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(99, 102, 241, 0.18);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1e1b4b;
    background: rgba(245, 243, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-glass-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(99, 102, 241, 0.08);
}

.report-glass-input::placeholder {
    color: rgba(100, 116, 139, 0.5);
    font-weight: 400;
}

.report-form-options {
    margin-bottom: 16px;
    padding-left: 48px;
}

/* ===== Login Button ===== */

.report-btn-login {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #6366f1, #4338ca, #312e81);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(67, 56, 202, 0.3);
}

.report-btn-login-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-btn-login-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.report-btn-login:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(67, 56, 202, 0.4), 0 2px 8px rgba(99, 102, 241, 0.2);
}

.report-btn-login:hover .report-btn-login-glow {
    opacity: 1;
}

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

.report-btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Links ===== */

.report-login-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.report-login-links a {
    font-size: 0.78rem;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-login-links a:hover {
    color: #4338ca;
}

.report-link-voltar {
    color: #94a3b8 !important;
    font-size: 0.72rem !important;
}

.report-link-voltar:hover {
    color: #64748b !important;
}

/* ===== Footer Stats ===== */

.report-login-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.report-login-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 500;
}

.report-login-stat i {
    color: #a78bfa;
    font-size: 0.72rem;
}

.report-login-stat-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
}

/* ===== Error / Success Messages ===== */

.login-error-msg {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    min-height: 18px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.login-error-msg.active {
    color: #ef4444;
    font-weight: 600;
    animation: shake 0.3s ease;
}

.login-success-msg {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    min-height: 18px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.login-success-msg.active {
    color: #059669;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ===== Responsivo ===== */

@media (max-width: 480px) {
    .report-login-glass {
        padding: 28px 20px 22px;
        border-radius: 20px;
        max-width: 100%;
    }

    .report-floating-icons {
        display: none;
    }

    .report-login-header h1 {
        font-size: 1.3rem;
    }

    .report-login-logo-wrap {
        width: 52px;
        height: 52px;
    }

    .report-login-logo-wrap img {
        width: 52px;
        height: 52px;
    }

    .report-input-icon {
        display: none;
    }

    .report-form-options {
        padding-left: 0;
    }

    .report-login-stats {
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 10px;
    }

    .report-login-glass {
        padding: 22px 16px 18px;
    }
}

/* ===== OTP Boxes (Confirmar Codigo) ===== */

.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0 20px;
}

.otp-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #1e1b4b;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    background: rgba(245, 243, 255, 0.6);
    transition: all 0.2s ease;
    outline: none;
}

.otp-box:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #ffffff;
}

.otp-box.filled {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.06);
}

.otp-box.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    animation: shake 0.3s ease;
}

.otp-box.success {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    color: #059669;
}

@media (max-width: 400px) {
    .otp-box {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
    }
    .otp-container {
        gap: 5px;
    }
}

/* ===== Compatibilidade com paginas secundarias (recuperar, confirmar, nova senha) ===== */

/* Legacy brand (usado nas paginas secundarias) */
.login-brand {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    animation: fadeDown 0.5s ease;
}

.login-brand img {
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.login-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-brand h1 span {
    font-weight: 300;
    color: rgba(167, 139, 250, 0.95);
}

.login-brand p {
    font-size: 0.8rem;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.75);
}

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

/* Legacy card (paginas secundarias) */
.login-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    width: 100%;
    max-width: 860px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(67, 56, 202, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-card--simple {
    max-width: 440px;
    grid-template-columns: 1fr;
}

/* Painel escola (usado em paginas secundarias com card) */
.login-school {
    background: linear-gradient(160deg, #6366f1, #4338ca, #312e81);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    gap: 10px;
}

.login-school-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-school-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.login-school-logo:hover {
    transform: scale(1.05);
}

.login-school-name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    max-width: 280px;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 16px;
}

.login-back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Form panel (paginas secundarias) - LUMINOSO */
.login-form-panel {
    background: white;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    margin-bottom: 16px;
}

.login-form-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}

.login-form-header p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

/* Botoes legacy */
.login-btn-enter,
.login-btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6366f1, #4338ca, #312e81);
    background-size: 200% 100%;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
}

.login-btn-enter:hover,
.login-btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(67, 56, 202, 0.35);
}

.login-btn-enter:active,
.login-btn-primary:active {
    transform: translateY(0);
}

.login-btn-enter:disabled,
.login-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Links de form */
.login-form-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.login-form-links a {
    font-size: 0.78rem;
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.login-form-links a:hover {
    color: #4338ca;
}

/* Botao voltar mobile (paginas secundarias) */
.login-btn-voltar-mobile {
    display: none;
    width: 100%;
    padding: 10px;
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn-voltar-mobile:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

/* Override inputs para contexto login-form-panel */
.login-form-panel .sige-form-label {
    color: #475569;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form-panel .sige-form-input {
    background: rgba(245, 243, 255, 0.6);
    border-color: rgba(99, 102, 241, 0.18);
    color: #1e1b4b;
}

.login-form-panel .sige-form-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.login-form-panel .sige-form-input::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.login-form-panel .sige-checkbox-text {
    color: #64748b;
}

/* User info box (legacy) */
.login-user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
}

.login-user-box img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
}

.login-user-box-info { text-align: left; min-width: 0; }
.login-user-box-info strong { display: block; font-size: 0.78rem; font-weight: 600; color: #1e1b4b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.login-user-box-info small { font-size: 0.68rem; color: #6366f1; opacity: 0.9; }

/* Responsivo paginas secundarias */
@media (max-width: 768px) {
    .login-brand { display: none; }

    .login-card {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .login-card--simple {
        max-width: 420px;
        grid-template-columns: 1fr;
    }

    .login-school { padding: 24px 20px; }
    .login-school-logo { width: 64px; height: 64px; }
    .login-school-name { font-size: 0.95rem; }
    .login-back-link { display: none; }
    .login-btn-voltar-mobile { display: block; }
    .login-form-panel { padding: 24px 20px; }
    .login-form-header h3 { font-size: 1.1rem; }
}

@media (max-width: 400px) {
    .login-card { margin: 0 10px; }
    .login-school { padding: 18px 16px; }
    .login-form-panel { padding: 20px 16px; }
}

/* ===== Download / Instalar App ===== */
.login-download-apps {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.login-download-apps p {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    margin-bottom: 6px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.login-download-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.login-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s;
}

.login-download-btn:hover {
    transform: translateY(-1px);
}

.login-download-btn i {
    font-size: 1rem;
}

.login-download-btn--android {
    background: rgba(61, 220, 132, 0.5);
    border: 1px solid rgba(61, 220, 132, 0.4);
}

.login-download-btn--android:hover {
    background: rgba(61, 220, 132, 0.7);
}

.login-download-btn--pwa {
    background: rgba(99, 102, 241, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.5);
    cursor: pointer;
}

.login-download-btn--pwa:hover {
    background: rgba(99, 102, 241, 0.8);
}

@media (max-width: 480px) {
    .login-download-apps {
        bottom: 10px;
    }
    .login-download-btn span {
        display: none;
    }
    .login-download-btn {
        padding: 8px 12px;
    }
    .login-download-btn i {
        font-size: 1.2rem;
    }
}
