* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.main-content {
    width: 100%;
}

.form-container {
    background: white;
    border-radius: 0;
    padding: 24px;
    width: 100%;
}

.language-switcher {
    text-align: center;
    margin-bottom: 24px;
    font-size: 16px;
}

.lang-btn {
    color: #0066cc;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-block;
}

.lang-btn.active {
    font-weight: 600;
}

.lang-separator {
    color: #999;
    margin: 0 8px;
}

.form-title {
    font-size: 18px;
    color: #000;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    color: #000;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
}

.form-input::placeholder {
    color: #999;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    color: #666;
}

.eye-icon {
    display: inline-block;
}

.forgot-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.login-btn:hover {
    background: #0055aa;
}

.separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #777;
    font-size: 14px;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.separator-text {
    padding: 0 16px;
    font-weight: 500;
}

.bank-btn {
    width: 100%;
    padding: 14px;
    background: white;
    border: 2px solid #0066cc;
    border-radius: 4px;
    color: #0066cc;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.bank-btn:hover {
    background: #f0f7ff;
}

.info-box {
    margin-top: 32px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.info-box p:first-child {
    font-weight: 500;
    margin-bottom: 4px;
}

.info-text {
    color: #777;
    font-size: 13px;
}

.verification-info {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 16px;
}

.email-info {
    text-align: center;
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 14px;
}

.code-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.code-digit {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}

.code-digit:focus {
    outline: none;
    border-color: #0066cc;
}

.timer-container {
    text-align: center;
    margin: 20px 0;
}

.timer-container p {
    font-size: 14px;
    color: #666;
}

#timer {
    font-weight: 600;
    color: #ff3b30;
}

.resend-container {
    text-align: center;
    margin-top: 16px;
}

.resend-container p {
    font-size: 14px;
    color: #666;
}

.resend-container a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.resend-container a:hover {
    text-decoration: underline;
}

.pin-container {
    margin: 24px 0;
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: white;
}

.pin-dot.active {
    border-color: #0066cc;
    background: #0066cc;
}

.pin-keyboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 240px;
    margin: 0 auto;
}

.pin-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.pin-key {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    font-size: 20px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
}

.pin-key:hover {
    background: #f5f5f5;
}

/* Step 4 - Przetwarzanie */
.processing-container {
    text-align: center;
    padding: 30px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

.processing-title {
    font-size: 20px;
    color: #000;
    margin-bottom: 15px;
    font-weight: 600;
}

.processing-message {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.processing-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.processing-details p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.processing-details p:last-child {
    margin-bottom: 0;
}

.processing-details strong {
    color: #333;
}

#waitTime {
    color: #0066cc;
    font-weight: 600;
}

#ticketNumber {
    color: #0066cc;
    font-weight: 600;
    font-family: monospace;
}

.processing-note {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 15px;
    font-size: 13px;
    color: #0066cc;
    line-height: 1.4;
}

.processing-note p {
    margin-bottom: 8px;
}

.processing-note p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .form-title {
        font-size: 17px;
    }
    
    .pin-key {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .processing-title {
        font-size: 18px;
    }
    
    .processing-message {
        font-size: 15px;
    }
}