/* ===========================
   Layout principal
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #f0f4f8;
}

.login-wrapper {
    display: flex;
    height: 100vh;
}

/* ===========================
   Painel esquerdo
=========================== */
.login-panel-left {
    flex: 1;
    background: linear-gradient(145deg, #1a3a5c 0%, #1e4d7b 50%, #1a3a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Círculo decorativo de fundo */
.login-panel-left::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -80px;
    left: -80px;
}

.login-panel-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -60px;
    right: -60px;
}

.panel-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 340px;
}

.brand-logo {
    margin-bottom: 24px;
}

.brand-logo img {
    width: 130px;
    max-width: 100%;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    padding: 10px;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #c9a227;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===========================
   Painel direito
=========================== */
.login-panel-right {
    width: 460px;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.08);
}

.login-form-box {
    width: 100%;
    max-width: 360px;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 32px;
}

/* ===========================
   Campos do formulário
=========================== */
.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.form-group label i {
    color: #c9a227;
    margin-right: 4px;
}

.login-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.login-input:focus {
    border-color: #1e4d7b;
    box-shadow: 0 0 0 3px rgba(30, 77, 123, 0.12);
    background: #ffffff;
    outline: none;
}

/* Campo de senha com ícone */
.input-password-wrapper {
    position: relative;
}

.input-password-wrapper .login-input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #1e4d7b;
}

/* ===========================
   Botão de login
=========================== */
.btn-login {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1e4d7b, #1a3a5c);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

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

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

.btn-login i {
    margin-left: 6px;
}

/* ===========================
   Rodapé
=========================== */
.form-footer {
    text-align: center;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

/* ===========================
   Two-factor específico
=========================== */
.twofa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e4d7b, #1a3a5c);
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.codigo-input {
    font-size: 1.8rem;
    letter-spacing: 0.6rem;
    text-align: center;
    font-weight: 700;
    padding: 14px;
}

.twofa-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.link-action {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.link-action:hover {
    color: #1e4d7b;
    background: #f0f4f8;
}

.link-action i {
    margin-right: 4px;
}

.security-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 28px;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

.security-badge i {
    font-size: 1.4rem;
    color: #c9a227;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-badge strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #ffffff;
}

.security-badge p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* ===========================
   Responsivo
=========================== */
@media (max-width: 768px) {
    .login-panel-left {
        display: none;
    }

    .login-panel-right {
        width: 100%;
        padding: 32px 24px;
    }

    body {
        overflow: auto;
    }
}
