/* PIN-Login Styles - MOJO POS System */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.pin-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
.pin-header {
    text-align: center;
    padding: 40px 0;
    color: white;
    margin-bottom: 30px;
}

.pin-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.pin-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.session-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.info-icon {
    font-size: 1.2rem;
}

/* PIN-Section */
.pin-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.pin-container-inner {
    max-width: 400px;
    margin: 0 auto;
}

/* PIN-Display */
.pin-display {
    text-align: center;
    margin-bottom: 40px;
}

.pin-display-inner {
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-display-inner span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.5rem;
    font-family: 'Courier New', monospace;
}

.pin-status {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6b7280;
    min-height: 1.5rem;
}

.pin-status.error {
    color: #dc2626;
}

.pin-status.success {
    color: #059669;
}

/* Zahlen-Tastatur */
.pin-keypad {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.pin-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.num-btn, .clear-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.num-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.num-btn:active {
    background: #cbd5e1;
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clear-btn {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
    font-size: 1.5rem;
}

.clear-btn:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

.clear-btn:active {
    background: #f59e0b;
    transform: translateY(0);
}

.empty-space {
    /* Leerer Platz für das 3x4 Grid */
    min-height: 70px;
}

/* Enter-Button */
.enter-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
}

.enter-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.enter-btn:active:not(:disabled) {
    transform: translateY(0);
}

.enter-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-text {
    font-size: 1.1rem;
}

/* Footer */
.pin-footer {
    text-align: center;
    padding: 30px 0;
    color: white;
    opacity: 0.8;
}

.pin-footer p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.security-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.security-icon {
    font-size: 1rem;
}

/* Status Messages */
.status-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.status-message {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.status-message.error {
    background-color: #dc3545;
}

.status-message.success {
    background-color: #28a745;
}

.status-message.warning {
    background-color: #ffc107;
    color: #333;
}

.status-message.info {
    background-color: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animationen */
.pin-container-inner {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .pin-container {
        padding: 1rem;
    }
    
    .pin-header h1 {
        font-size: 2.5rem;
    }
    
    .pin-section {
        padding: 30px 20px;
    }
    
    .pin-display-inner {
        padding: 20px;
        min-height: 60px;
    }
    
    .pin-display-inner span {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    .num-btn, .clear-btn {
        padding: 15px;
        font-size: 1.5rem;
        min-height: 60px;
    }
    
    .empty-space {
        min-height: 60px;
    }
    
    .enter-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-height: 50px;
    }
}

/* Tablet-spezifische Optimierungen */
@media (min-width: 769px) and (max-width: 1024px) {
    .pin-container {
        max-width: 450px;
    }
    
    .pin-header h1 {
        font-size: 2.8rem;
    }
    
    .pin-display-inner span {
        font-size: 2.2rem;
    }
    
    .num-btn, .clear-btn {
        min-height: 65px;
        font-size: 1.6rem;
    }
    
    .empty-space {
        min-height: 65px;
    }
}

/* Hover-Effekte für Tastatur */
.num-btn, .clear-btn {
    transition: all 0.15s ease;
}

.num-btn:hover, .clear-btn:hover {
    transform: scale(1.05);
}

.num-btn:active, .clear-btn:active {
    transform: scale(0.95);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
