/* PIN Login Widget Styles */
.pin-login-container {
    max-width: 400px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0 20px;
}

.pin-login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    text-align: center;
}

.pin-header {
    margin-bottom: 30px;
}

.pin-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2c3338;
    margin: 0 0 8px 0;
    font-family: 'Courier New', monospace;
}

.pin-subtitle {
    color: #646970;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
}

.pin-display-container {
    margin-bottom: 25px;
}

.pin-display {
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    padding: 15px;
    width: 180px;
    margin: 0 auto;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #2c3338;
    transition: all 0.2s ease;
    min-height: 20px;
}

.pin-display.focused {
    border-color: #0073aa;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #0073aa;
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.pin-key {
    background: #ffffff;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #2c3338;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pin-key:hover {
    background: #f6f7f7;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pin-key:active {
    transform: translateY(0);
    background: #e7f3ff;
}

.pin-clear {
    color: #d63638;
    font-size: 20px;
}

.pin-backspace {
    color: #646970;
    font-size: 20px;
}

.pin-login-btn {
    width: 100%;
    background: #a8a8a8;
    color: white;
    border: none;
    border-radius: 8px;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.pin-login-btn:not(:disabled) {
    background: #0073aa;
    cursor: pointer;
}

.pin-login-btn:not(:disabled):hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.pin-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.pin-loading {
    text-align: center;
    padding: 20px;
}

.pin-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pin-footer {
    text-align: center;
    margin-top: 20px;
}

.pin-standard-login {
    color: #646970;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.pin-standard-login:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
    text-decoration: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.pin-display.shake {
    animation: shake 0.5s;
}

@media (max-width: 480px) {
    .pin-login-container {
        padding: 0 15px;
    }
    
    .pin-login-card {
        padding: 30px 20px;
    }
    
    .pin-keypad {
        gap: 10px;
    }
    
    .pin-key {
        height: 45px;
    }
}
