/* Estilos específicos da página de login */

/* Container do formulário de login */
.login-form-container {
    max-width: 380px;
    width: 100%;
    margin: 60px auto 0;
    padding: 32px;
    background-color: #0a0d14;
    border-radius: 16px;
    border: 1px solid #1f2937;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Personalização dos campos de login */
.login-form-container label {
    display: block;
    margin-bottom: 8px;
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.9rem;
}

.login-form-container input[type="text"],
.login-form-container input[type="email"],
.login-form-container input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background-color: #0f1217;
    color: #e5e7eb;
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
}

.login-form-container input[type="text"]:focus,
.login-form-container input[type="email"]:focus,
.login-form-container input[type="password"]:focus {
    border-color: #a3e635;
    box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.15);
}

/* Campo de senha com ícone de mostrar/ocultar */
.password-field {
    position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 42px;
    cursor: pointer;
    color: #6b7280;
    transition: color .15s ease;
}

.toggle-password:hover {
    color: #e5e7eb;
}

/* Login tabs (DATAGRO AI / DATAGRO) */
.login-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1f2937;
}

.login-tab {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}

.login-tab:hover {
    color: #e5e7eb;
}

.login-tab.is-active {
    color: #a3e635;
    border-bottom-color: #a3e635;
}

.login-tab-panel {
    display: none;
}

.login-tab-panel.is-active {
    display: block;
}

.login-tab-help {
    color: #9ca3af;
    font-size: 0.82rem;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.login-form-container button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

.header-heading {
    text-align: center;
    margin-bottom: 32px;
}

#htext,
.helptext {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ========== MFA Styles ========== */

.mfa-subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mfa-messages {
    margin-bottom: 16px;
}

.mfa-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.mfa-msg-error {
    background-color: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.mfa-msg-success {
    background-color: rgba(163, 230, 53, 0.10);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.25);
}

.mfa-msg-info {
    background-color: rgba(96, 165, 250, 0.10);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

/* QR Code */
.mfa-qr-container {
    text-align: center;
    margin: 20px 0;
}

.mfa-qr-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 2px solid #1f2937;
    background: #fff;
    padding: 8px;
}

/* Manual secret */
.mfa-secret-box {
    text-align: center;
    margin: 12px 0 0;
}

.mfa-secret-label {
    color: #9ca3af;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.mfa-secret-code {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0f1217;
    border: 1px solid #1f2937;
    border-radius: 8px;
    color: #a3e635;
    font-size: 0.95rem;
    letter-spacing: 2px;
    user-select: all;
    word-break: break-all;
}

/* TOTP input styling */
#totp_code {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Status badges */
.mfa-status-badge {
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.mfa-status-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.mfa-status-on {
    background-color: rgba(163, 230, 53, 0.08);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.2);
}

.mfa-status-off {
    background-color: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Danger button variant */
.btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-danger:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* Back link */
.mfa-back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
}

.mfa-back-link a {
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s ease;
}

.mfa-back-link a:hover {
    color: #a3e635;
}
