/* Estilos da Tela de Login - Radar Recursos SUS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #060913;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, transparent 70%);
    background-attachment: fixed;
    color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Partículas e efeitos sutis de fundo */
.bg-glow-1 {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    top: 5%;
    left: 10%;
    filter: blur(50px);
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    bottom: 5%;
    right: 10%;
    filter: blur(60px);
    pointer-events: none;
    animation: floatGlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.08); }
}

/* Container do Cartão de Login */
.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(14, 165, 233, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 
        0 24px 48px -15px rgba(0, 0, 0, 0.9),
        0 0 45px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Cabeçalho do Card */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    height: 52px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.login-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.badge-rs-login {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-sec-login {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.login-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-label {
    font-size: 0.80rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    background: rgba(11, 19, 43, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    font-size: 0.90rem;
    color: #f8fafc;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #38bdf8;
    background: rgba(11, 19, 43, 0.95);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #38bdf8;
}

/* Botão de Exibir/Ocultar Senha */
.btn-toggle-pass {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-toggle-pass:hover {
    color: #38bdf8;
}

/* Opções adicionais (Lembrar acesso) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: -4px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    accent-color: #10b981;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Mensagem de Erro / Alerta */
.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.25s ease;
}

.alert-error.active {
    display: flex;
}

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

/* Botão de Login */
.btn-login {
    background: linear-gradient(135deg, #059669, #0d9488);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

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

.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Rodapé */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.6;
}

.login-footer span {
    color: #38bdf8;
    font-weight: 600;
}
