/* FOUC Prevention */
[x-cloak] { 
    display: none !important; 
}

/* Layout Prevention */
.login-container {
    width: 24rem;
    min-height: 32rem;
}

.numpad-container {
    height: 20rem;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* Button Styles */
.btn-numpad {
    background-color: #374151;
    color: #e2e8f0;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-numpad:hover:not(:disabled) {
    background-color: #4b5563;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-numpad:active {
    transform: scale(0.95);
}

.btn-numpad:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-clear {
    background-color: #dc2626;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-clear:hover:not(:disabled) {
    background-color: #ef4444;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-clear:active {
    transform: scale(0.95);
}

.btn-clear:disabled {
    opacity: 0.5;
}

.btn-submit {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-submit:hover:not(:disabled) {
    background-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-submit:active {
    transform: scale(0.95);
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.btn-submitting {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
}

.btn-success {
    background-color: #059669 !important;
}

.btn-success:hover {
    background-color: #10b981 !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-container {
        width: 100%;
        max-width: 20rem;
        padding: 2rem;
    }
    
    .btn-numpad,
    .btn-clear,
    .btn-submit {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}