/* =====================================================
   GERPAY - CSS ESPECÍFICO PARA TELA DE LOGIN
   CSS Isolado - Não depende de outros arquivos
   ===================================================== */

/* Reset e Base - Escopo isolado */
.gerpay-login-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gerpay-login-page {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Efeito de partículas/brilho no fundo */
.gerpay-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(91, 141, 239, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 152, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(91, 141, 239, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Container principal */
.gerpay-login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Garantir que html/body não criem scroll lateral na página de login */
body.gerpay-login-page,
html:has(body.gerpay-login-page) {
    overflow-x: hidden;
}

/* Card de login */
.gerpay-login-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Logo e Header */
.gerpay-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.gerpay-login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5b8def 0%, #4cafa0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 10px 30px rgba(91, 141, 239, 0.4);
    transition: transform 0.3s ease;
}

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

.gerpay-login-logo svg {
    width: 32px;
    height: 32px;
    color: white;
}

.gerpay-login-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.gerpay-login-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Indicador de etapas */
.gerpay-login-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gerpay-login-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gerpay-login-step.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gerpay-login-step.active {
    background: linear-gradient(135deg, #5b8def 0%, #4a7bd4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(91, 141, 239, 0.5);
}

.gerpay-login-step.completed {
    background: linear-gradient(135deg, #4cafa0 0%, #3d9488 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 152, 0.5);
}

.gerpay-login-step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.4s ease;
}

.gerpay-login-step-line.active {
    background: linear-gradient(90deg, #4cafa0 0%, #5b8def 100%);
}

/* Descrição da etapa */
.gerpay-login-step-description {
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(91, 141, 239, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(91, 141, 239, 0.2);
}

.gerpay-login-step-description p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

.gerpay-login-step-description .gerpay-user-name {
    color: #5b8def;
    font-weight: 600;
}

/* Formulários */
.gerpay-login-form {
    display: none;
}

.gerpay-login-form.active {
    display: block;
    animation: gerpayFadeIn 0.5s ease;
}

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

/* Grupos de input */
.gerpay-input-group {
    margin-bottom: 14px;
}

.gerpay-input-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.904);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gerpay-input-wrapper {
    position: relative;
}

.gerpay-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.904);
    transition: color 0.3s ease;
    pointer-events: none;
}

.gerpay-login-page .gerpay-input,
.gerpay-login-page input.gerpay-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    outline: none;
}

.gerpay-login-page .gerpay-input::placeholder,
.gerpay-login-page input.gerpay-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.gerpay-login-page .gerpay-input:focus,
.gerpay-login-page input.gerpay-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #5b8def !important;
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2) !important;
}

.gerpay-input:focus + svg,
.gerpay-input-wrapper:focus-within svg {
    color: #5b8def;
}

/* Toggle de senha */
.gerpay-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.gerpay-password-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

.gerpay-password-toggle svg {
    position: static;
    transform: none;
    width: 20px;
    height: 20px;
}

/* Select estilizado */
.gerpay-login-page .gerpay-select,
.gerpay-login-page select.gerpay-select {
    width: 100%;
    padding: 12px 12px 12px 44px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px 20px !important;
}

.gerpay-login-page .gerpay-select:focus,
.gerpay-login-page select.gerpay-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #5b8def !important;
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b8def' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px 20px !important;
}

.gerpay-select option {
    background: #2a3f5f;
    color: #ffffff;
    padding: 12px;
}

/* Botões */
.gerpay-login-page .gerpay-btn,
.gerpay-login-page button.gerpay-btn {
    width: 100%;
    padding: 12px 20px;
    border: none !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gerpay-btn svg {
    width: 20px;
    height: 20px;
}

.gerpay-login-page .gerpay-btn-primary,
.gerpay-login-page button.gerpay-btn-primary {
    background: linear-gradient(135deg, #5b8def 0%, #4a7bd4 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(91, 141, 239, 0.35);
}

.gerpay-login-page .gerpay-btn-primary:hover,
.gerpay-login-page button.gerpay-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(91, 141, 239, 0.45) !important;
}

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

.gerpay-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gerpay-login-page .gerpay-btn-secondary,
.gerpay-login-page button.gerpay-btn-secondary {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-top: 8px;
}

.gerpay-login-page .gerpay-btn-secondary:hover,
.gerpay-login-page button.gerpay-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Cards de tipo de acesso */
.gerpay-access-types {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 14px;
}

.gerpay-access-card {
    flex: 1;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gerpay-access-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.gerpay-access-card.selected {
    border-color: #5b8def;
    background: rgba(91, 141, 239, 0.15);
}

.gerpay-access-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gerpay-access-card-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.gerpay-access-card-icon.vendas {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.gerpay-access-card-icon.caixa {
    background: linear-gradient(135deg, #4ecdc4 0%, #44b3ab 100%);
}

.gerpay-access-card-icon.gestao {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.gerpay-access-card-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.gerpay-access-card.selected .gerpay-access-card-title {
    color: #ffffff;
}

/* Mensagens de erro/sucesso */
.gerpay-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: gerpayShake 0.5s ease;
}

@keyframes gerpayShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.gerpay-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gerpay-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.gerpay-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Loading spinner */
.gerpay-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: gerpaySpinner 0.8s linear infinite;
}

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

/* Footer do card */
.gerpay-login-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.gerpay-login-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

/* Responsivo - Tablets */
@media (max-width: 768px) {
    .gerpay-login-page {
        align-items: flex-start;
        padding: 16px 0;
    }

    .gerpay-login-container {
        padding: 16px;
        max-width: 100%;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .gerpay-login-card {
        padding: 28px 24px;
        border-radius: 20px;
        width: 100%;
    }
    
    .gerpay-login-header {
        margin-bottom: 20px;
    }
    
    .gerpay-login-logo {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    
    .gerpay-login-logo svg {
        width: 28px;
        height: 28px;
    }
    
    .gerpay-login-title {
        font-size: 24px;
    }
    
    .gerpay-login-subtitle {
        font-size: 12px;
    }
}

/* Responsivo - Mobile */
@media (max-width: 480px) {
    .gerpay-login-page {
        padding: 12px 0;
        align-items: flex-start;
        min-height: 100dvh;
    }
    
    .gerpay-login-container {
        padding: 12px;
        max-width: 100%;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gerpay-login-card {
        padding: 24px 20px;
        border-radius: 16px;
        width: 100%;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    }
    
    .gerpay-login-header {
        margin-bottom: 16px;
    }
    
    .gerpay-login-logo {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    .gerpay-login-logo svg {
        width: 26px;
        height: 26px;
    }
    
    .gerpay-login-title {
        font-size: 22px;
        margin-bottom: 2px;
    }
    
    .gerpay-login-subtitle {
        font-size: 11px;
    }
    
    /* Steps */
    .gerpay-login-steps {
        margin-bottom: 16px;
        gap: 8px;
    }
    
    .gerpay-login-step {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .gerpay-login-step-line {
        width: 30px;
    }
    
    /* Descrição da etapa */
    .gerpay-login-step-description {
        padding: 8px 12px;
        margin-bottom: 14px;
    }
    
    .gerpay-login-step-description p {
        font-size: 11px;
    }
    
    /* Inputs */
    .gerpay-input-group {
        margin-bottom: 12px;
    }
    
    .gerpay-input-label {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .gerpay-input-wrapper svg {
        left: 12px;
        width: 18px;
        height: 18px;
    }
    
    .gerpay-input,
    .gerpay-select {
        padding: 14px 14px 14px 40px;
        font-size: 16px; /* 16px evita zoom no iOS */
        border-radius: 10px;
    }
    
    .gerpay-select {
        background-position: right 10px center;
    }
    
    .gerpay-password-toggle {
        right: 12px;
    }
    
    .gerpay-password-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    /* Botões */
    .gerpay-btn {
        padding: 14px 18px;
        font-size: 13px;
        border-radius: 10px;
        gap: 6px;
    }
    
    .gerpay-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .gerpay-btn-secondary {
        margin-top: 10px;
    }
    
    /* Cards de tipo de acesso - Layout mobile */
    .gerpay-access-types {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .gerpay-access-card {
        padding: 12px 6px;
        border-radius: 10px;
        gap: 6px;
        min-width: 90px;
        max-width: 110px;
        flex: 0 1 auto;
    }
    
    .gerpay-access-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .gerpay-access-card-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .gerpay-access-card-title {
        font-size: 10px;
    }
    
    /* Alertas */
    .gerpay-alert {
        padding: 12px 14px;
        font-size: 13px;
        gap: 10px;
        border-radius: 10px;
        margin-bottom: 16px;
    }
    
    .gerpay-alert svg {
        width: 18px;
        height: 18px;
    }
    
    /* Footer */
    .gerpay-login-footer {
        margin-top: 14px;
        padding-top: 10px;
    }
    
    .gerpay-login-footer p {
        font-size: 10px;
    }
}

/* Mobile muito pequeno (iPhone SE, etc) */
@media (max-width: 360px) {
    .gerpay-login-container {
        padding: 8px;
    }
    
    .gerpay-login-card {
        padding: 20px 16px;
    }
    
    .gerpay-login-logo {
        width: 44px;
        height: 44px;
    }
    
    .gerpay-login-logo svg {
        width: 22px;
        height: 22px;
    }
    
    .gerpay-login-title {
        font-size: 20px;
    }
    
    .gerpay-access-types {
        gap: 6px;
    }
    
    .gerpay-access-card {
        padding: 10px 4px;
        min-width: 80px;
        max-width: 100px;
    }
    
    .gerpay-access-card-icon {
        width: 28px;
        height: 28px;
    }
    
    .gerpay-access-card-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .gerpay-access-card-title {
        font-size: 9px;
    }
}

/* =====================================================
   Refinamento visual 2026
   Mantém as mesmas classes e o mesmo fluxo JS, apenas
   moderniza a apresentação da tela de acesso.
   ===================================================== */
:root {
    --gerpay-login-blue: #3b82f6;
    --gerpay-login-indigo: #6366f1;
    --gerpay-login-ink: #0f172a;
}

.gerpay-login-page {
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, .28), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(99, 102, 241, .24), transparent 30%),
        linear-gradient(135deg, #071426 0%, #0d1d36 48%, #172554 100%);
}

.gerpay-login-page::before {
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, .035) 35.1% 35.2%, transparent 35.3% 100%),
        radial-gradient(circle at 76% 22%, rgba(147, 197, 253, .16) 0 1px, transparent 1.5px),
        radial-gradient(circle at 22% 72%, rgba(196, 181, 253, .14) 0 1px, transparent 1.5px);
    background-size: auto, 34px 34px, 46px 46px;
    opacity: .7;
}

.gerpay-login-page::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 460px;
    height: 460px;
    right: -150px;
    top: -160px;
    border: 1px solid rgba(147, 197, 253, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(147, 197, 253, .025), 0 0 0 70px rgba(147, 197, 253, .02);
}

.gerpay-login-container {
    max-width: 470px;
    padding: 24px;
}

.gerpay-login-card {
    position: relative;
    overflow: hidden;
    padding: 38px 38px 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.gerpay-login-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #6366f1, #a78bfa);
}

.gerpay-login-header { margin-bottom: 28px; }
.gerpay-login-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    border-radius: 21px;
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 58%, #8b5cf6 100%);
    box-shadow: 0 14px 35px rgba(59, 130, 246, .38), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.gerpay-login-logo svg { width: 36px; height: 36px; }
.gerpay-login-title { font-size: 30px; letter-spacing: -.8px; }
.gerpay-login-subtitle { color: rgba(226, 232, 240, .68); font-size: 13px; letter-spacing: .1px; }

.gerpay-login-steps { gap: 12px; margin-bottom: 24px; }
.gerpay-login-step {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 12px;
}
.gerpay-login-step.active { background: linear-gradient(135deg, #38bdf8, #4f46e5); box-shadow: 0 7px 20px rgba(59, 130, 246, .35); }
.gerpay-login-step.completed { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 7px 20px rgba(16, 185, 129, .28); }
.gerpay-login-step-line { width: 55px; background: rgba(255, 255, 255, .14); }

.gerpay-login-step-description {
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 13px;
    background: rgba(14, 165, 233, .08);
}
.gerpay-login-step-description p { color: rgba(226, 232, 240, .74); font-size: 12px; }
.gerpay-login-step-description .gerpay-user-name { color: #7dd3fc; }

.gerpay-input-group { margin-bottom: 17px; }
.gerpay-input-label { color: rgba(226, 232, 240, .86); font-size: 10px; letter-spacing: .8px; }
.gerpay-input-wrapper svg { left: 15px; color: rgba(148, 163, 184, .9); }
.gerpay-login-page .gerpay-input,
.gerpay-login-page input.gerpay-input,
.gerpay-login-page .gerpay-select,
.gerpay-login-page select.gerpay-select {
    min-height: 50px;
    padding-top: 13px;
    padding-bottom: 13px;
    border-color: rgba(148, 163, 184, .2) !important;
    border-radius: 13px !important;
    background: rgba(15, 23, 42, .36) !important;
}
.gerpay-login-page .gerpay-input:hover,
.gerpay-login-page .gerpay-select:hover { border-color: rgba(125, 211, 252, .42) !important; }
.gerpay-login-page .gerpay-input:focus,
.gerpay-login-page input.gerpay-input:focus,
.gerpay-login-page .gerpay-select:focus,
.gerpay-login-page select.gerpay-select:focus {
    border-color: #60a5fa !important;
    background: rgba(15, 23, 42, .55) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .15) !important;
}
.gerpay-login-page .gerpay-input::placeholder { color: rgba(148, 163, 184, .65) !important; }
.gerpay-password-toggle { right: 14px; color: rgba(148, 163, 184, .78); }

.gerpay-login-page .gerpay-btn,
.gerpay-login-page button.gerpay-btn {
    min-height: 50px;
    border-radius: 13px !important;
    font-size: 12px !important;
    letter-spacing: .75px;
}
.gerpay-login-page .gerpay-btn-primary,
.gerpay-login-page button.gerpay-btn-primary {
    background: linear-gradient(110deg, #2563eb, #4f46e5 60%, #7c3aed) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.gerpay-login-page .gerpay-btn-primary:hover,
.gerpay-login-page button.gerpay-btn-primary:hover { box-shadow: 0 16px 34px rgba(37, 99, 235, .42) !important; }
.gerpay-login-page .gerpay-btn-secondary,
.gerpay-login-page button.gerpay-btn-secondary { color: rgba(226, 232, 240, .68) !important; border-color: rgba(148, 163, 184, .22) !important; }

.gerpay-tipo-identificacao { gap: 10px; margin-bottom: 16px; }
.gerpay-tipo-card {
    min-height: 72px;
    padding: 11px 10px;
    border-color: rgba(148, 163, 184, .17);
    border-radius: 13px;
    background: rgba(15, 23, 42, .26);
}
.gerpay-tipo-card.selected { border-color: #60a5fa; background: rgba(37, 99, 235, .17); box-shadow: 0 7px 18px rgba(37, 99, 235, .16); }
.gerpay-tipo-icon { width: 24px; height: 24px; }
.gerpay-tipo-card span { color: rgba(226, 232, 240, .8); font-size: 11px; }
.gerpay-tipo-card.selected span { color: #fff; }

.gerpay-access-types { gap: 12px; margin-bottom: 18px; }
.gerpay-access-card { min-height: 106px; padding: 16px 10px; border-color: rgba(148, 163, 184, .17); border-radius: 15px; background: rgba(15, 23, 42, .25); }
.gerpay-access-card.selected { border-color: #60a5fa; background: rgba(37, 99, 235, .17); box-shadow: 0 8px 20px rgba(37, 99, 235, .14); }
.gerpay-access-card-icon { width: 40px; height: 40px; border-radius: 12px; }
.gerpay-access-card-title { color: rgba(226, 232, 240, .78); font-size: 11px; }

.gerpay-alert { margin-bottom: 18px; border-radius: 13px; }
.gerpay-login-footer { margin-top: 22px; padding-top: 16px; border-color: rgba(148, 163, 184, .14); }
.gerpay-login-footer p { color: rgba(148, 163, 184, .58); font-size: 10px; }

@media (max-width: 480px) {
    .gerpay-login-container { padding: 14px; }
    .gerpay-login-card { padding: 32px 22px 24px; border-radius: 23px; }
    .gerpay-login-header { margin-bottom: 24px; }
    .gerpay-login-logo { width: 60px; height: 60px; border-radius: 18px; }
    .gerpay-login-title { font-size: 27px; }
    .gerpay-login-step-line { width: 38px; }
    .gerpay-access-types { gap: 8px; }
    .gerpay-access-card { min-height: 94px; padding: 12px 6px; }
}

/* Landscape mode no mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .gerpay-login-page {
        align-items: flex-start;
        padding: 10px 0;
    }
    
    .gerpay-login-container {
        min-height: auto;
    }
    
    .gerpay-login-card {
        max-height: none;
        overflow: visible;
    }
    
    .gerpay-login-header {
        margin-bottom: 12px;
    }
    
    .gerpay-login-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }
    
    .gerpay-login-title {
        font-size: 18px;
    }
    
    .gerpay-login-subtitle {
        display: none;
    }
    
    .gerpay-login-steps {
        margin-bottom: 10px;
    }
    
    .gerpay-login-step {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .gerpay-login-step-description {
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    
    .gerpay-input-group {
        margin-bottom: 8px;
    }
    
    .gerpay-input,
    .gerpay-select {
        padding: 10px 10px 10px 36px;
    }
    
    .gerpay-btn {
        padding: 10px 16px;
    }
    
    .gerpay-access-types {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .gerpay-access-card {
        padding: 8px 4px;
        flex-direction: row;
        gap: 6px;
    }
    
    .gerpay-access-card-icon {
        width: 28px;
        height: 28px;
    }
    
    .gerpay-login-footer {
        margin-top: 10px;
        padding-top: 8px;
    }
}

/* =====================================================
   SELETOR DE TIPO DE IDENTIFICAÇÃO (CPF vs Nome de Usuário)
   ===================================================== */
.gerpay-tipo-identificacao {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.gerpay-tipo-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gerpay-tipo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.1) 0%, rgba(76, 175, 152, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gerpay-tipo-card:hover::before {
    opacity: 1;
}

.gerpay-tipo-card:hover {
    border-color: rgba(91, 141, 239, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gerpay-tipo-card.selected {
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.15) 0%, rgba(76, 175, 152, 0.15) 100%);
    border-color: #5b8def;
    box-shadow: 0 4px 12px rgba(91, 141, 239, 0.3);
}

.gerpay-tipo-card.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #5b8def;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.gerpay-tipo-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.gerpay-tipo-icon svg {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.gerpay-tipo-card:hover .gerpay-tipo-icon svg,
.gerpay-tipo-card.selected .gerpay-tipo-icon svg {
    color: #5b8def;
}

.gerpay-tipo-card span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    text-align: center;
}

.gerpay-tipo-card.selected span {
    color: white;
}

/* Responsividade para seletor */
@media (max-width: 360px) {
    .gerpay-tipo-identificacao {
        flex-direction: column;
        gap: 8px;
    }
    
    .gerpay-tipo-card {
        flex-direction: row;
        padding: 12px;
    }
}

/* Overrides finais do seletor de identificação */
.gerpay-login-page .gerpay-tipo-identificacao { gap: 10px; margin-bottom: 16px; }
.gerpay-login-page .gerpay-tipo-card { min-height: 72px; padding: 11px 10px; border: 1px solid rgba(148, 163, 184, .17); border-radius: 13px; background: rgba(15, 23, 42, .26); }
.gerpay-login-page .gerpay-tipo-card:hover { border-color: rgba(125, 211, 252, .42); background: rgba(30, 64, 175, .2); }
.gerpay-login-page .gerpay-tipo-card.selected { border-color: #60a5fa; background: rgba(37, 99, 235, .17); box-shadow: 0 7px 18px rgba(37, 99, 235, .16); }
