/* pin-ui.css - Interface Premium do Teclado Numérico de PIN */

.pin-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    animation: pinFadeIn 0.25s ease-out forwards;
}

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

.pin-modal-card {
    width: 100%;
    max-width: 400px;
    background: rgba(15, 17, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 1.8rem 1.4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.pin-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.pin-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.pin-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Indicador dos 6 dígitos */
.pin-dots-container {
    display: flex;
    gap: 12px;
    margin: 1.2rem 0;
    justify-content: center;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-dot.filled {
    background: #3b82f6;
    border-color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
    transform: scale(1.15);
}

.pin-dot.error {
    background: #ef4444;
    border-color: #f87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    animation: pinShake 0.3s ease-in-out;
}

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

/* Teclado Numérico */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 0.8rem;
}

.pin-key {
    min-height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
}

.pin-key:active {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(0.94);
}

.pin-key.action-key {
    font-size: 1.1rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
}

.pin-key.confirm-key {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.pin-key.confirm-key:active {
    background: rgba(16, 185, 129, 0.5);
}

.pin-key:disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Banner de Erro/Aviso */
.pin-error-banner {
    width: 100%;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    color: #f87171;
    font-size: 0.82rem;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.pin-footer-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.pin-btn-text {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 12px;
    text-decoration: underline;
}

.pin-btn-text:hover {
    color: #ffffff;
}

@media (max-width: 360px) {
    .pin-modal-card { padding: 1.2rem 1rem; }
    .pin-key { min-height: 48px; font-size: 1.25rem; }
}
