/* EurosanGift B2B — bejelentkezés (shop stílus) */
:root {
    --euro-blue: #0076ff;
    --euro-blue-dark: #005ecf;
    --euro-cyan: #00c2ff;
    --euro-ink: #0f172a;
    --euro-muted: #64748b;
    --euro-border: rgba(15, 23, 42, 0.08);
    --euro-radius-lg: 20px;
    --euro-radius-md: 14px;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #e9ecef;
    position: relative;
    overflow-x: hidden;
}

.auth-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(165deg, #f3f4f6 0%, #e8eaed 50%, #eceef1 100%);
}

/* Finom pont-rács */
.auth-page__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='0.65' fill='%2394a3b8' fill-opacity='0.22'/%3E%3C/svg%3E");
    background-size: 24px 24px;
}

/* Enyhe „papír” zaj + középen világosabb folt */
.auth-page__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 255, 255, 0.65) 0%, transparent 70%);
    background-size: 180px 180px, 100% 100%;
    opacity: 0.9;
}

.auth-login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    animation: authFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.auth-card {
    border: 1px solid var(--euro-border);
    border-radius: var(--euro-radius-lg);
    background: #fff;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 40px -12px rgba(0, 118, 255, 0.12);
    overflow: hidden;
}

.auth-card__top {
    height: 5px;
    background: linear-gradient(90deg, var(--euro-blue) 0%, var(--euro-cyan) 100%);
}

.auth-card__body {
    padding: 2.25rem 2rem 2rem;
}

@media (min-width: 480px) {
    .auth-card__body {
        padding: 2.5rem 2.25rem 2.25rem;
    }
}

.auth-card__logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-card__logo {
    max-width: 168px;
    height: auto;
    display: block;
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--euro-ink);
    margin: 0 0 0.35rem;
    text-align: center;
}

.auth-card__subtitle {
    font-size: 0.9375rem;
    color: var(--euro-muted);
    text-align: center;
    margin: 0 0 1.75rem;
    line-height: 1.45;
}

.auth-alert-maintenance {
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    border: 1px solid #fde68a;
    border-radius: var(--euro-radius-md);
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-alert-flash {
    border: none;
    border-radius: var(--euro-radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-alert-flash.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    color: #b91c1c;
    border-left: 4px solid #dc2626;
}

.auth-alert-flash.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    color: #047857;
    border-left: 4px solid #059669;
}

.auth-alert-flash.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    color: #1d4ed8;
    border-left: 4px solid #0076ff;
}

.auth-alert-flash.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    color: #b45309;
    border-left: 4px solid #f59e0b;
}

.auth-field {
    margin-bottom: 1.125rem;
}

.auth-field__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    padding-left: 2px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: var(--euro-radius-md);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap:focus-within {
    background: #fff;
    border-color: var(--euro-blue);
    box-shadow: 0 0 0 4px rgba(0, 118, 255, 0.12);
}

.auth-input-wrap__icon {
    flex-shrink: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.auth-input-wrap:focus-within .auth-input-wrap__icon {
    color: var(--euro-blue);
}

.auth-input-wrap .form-control {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.8rem 0.75rem 0.8rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--euro-ink);
    border-radius: 0 var(--euro-radius-md) var(--euro-radius-md) 0;
}

.auth-input-wrap .form-control::placeholder {
    color: #cbd5e1;
}

.auth-input-wrap__toggle {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0 14px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-input-wrap__toggle:hover {
    color: var(--euro-blue);
}

.auth-btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    border: none;
    border-radius: var(--euro-radius-md);
    background: linear-gradient(135deg, var(--euro-blue) 0%, var(--euro-blue-dark) 100%);
    box-shadow: 0 4px 14px rgba(0, 118, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 118, 255, 0.4);
    filter: brightness(1.03);
}

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

.auth-link-forgot {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--euro-blue) !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link-forgot:hover {
    color: var(--euro-blue-dark) !important;
    text-decoration: underline;
}

.auth-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.02em;
}
