/* UF13 Store — Login / Register auth pages */

.store-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 22px 22px;
    overflow-x: hidden;
    color: var(--ultras-white);
}

.store-auth-page .store-footer {
    width: 100%;
    max-width: 1220px;
    margin-top: 1.25rem;
    flex-shrink: 0;
}

.store-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.store-auth-page::after {
    display: none;
}

.auth-wrapper {
    width: 100%;
    max-width: 1220px;
    min-height: min(720px, calc(100vh - 120px));
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: rgba(8, 18, 36, 0.82);
    border: 1px solid var(--lux-border, rgba(126, 200, 255, 0.28));
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.auth-banner-side {
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--ultras-border-orange);
    background: var(--ultras-black);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.auth-banner-side img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: brightness(0.7) contrast(1.1);
}

.auth-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 8, 16, 0.4), rgba(5, 8, 16, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.auth-banner-overlay .logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--ultras-orange);
    box-shadow: 0 0 24px var(--ultras-orange-glow);
    object-fit: cover;
    margin-bottom: 1rem;
}

.auth-brand-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    text-shadow: 2px 2px 0 #000, 0 0 16px var(--ultras-orange-glow);
}

.auth-brand-text {
    color: var(--ultras-muted);
    margin-top: 0.75rem;
    line-height: 1.7;
    font-weight: 600;
}

.auth-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.auth-feature {
    padding: 12px 8px;
    border: 1px solid var(--ultras-border);
    border-radius: 12px;
    background: rgba(5, 8, 16, 0.5);
}

.auth-feature i {
    font-size: 1.5rem;
    color: var(--ultras-orange);
    display: block;
    margin-bottom: 6px;
}

.auth-feature strong {
    display: block;
    font-size: 0.85rem;
}

.auth-feature small {
    color: var(--ultras-muted);
    font-size: 0.75rem;
}

.form-side {
    position: relative;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--ultras-black), var(--ultras-navy));
}

.form-box {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.form-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--ultras-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.glow-line {
    width: 120px;
    height: 3px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, transparent, var(--ultras-orange), var(--ultras-blue), transparent);
    box-shadow: 0 0 14px var(--ultras-blue-glow);
}

.input-group-custom {
    position: relative;
    margin-bottom: 1rem;
}

.input-group-custom .input-icon {
    position: absolute;
    right: 16px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ultras-orange);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.input-group-custom input {
    width: 100%;
    height: 54px;
    border-radius: 12px;
    background: var(--ultras-dark);
    border: 1px solid var(--ultras-border);
    color: var(--ultras-white);
    font-size: 1rem;
    padding: 0 44px 0 16px;
    outline: none;
    transition: 0.25s;
    font-family: var(--ultras-font);
    direction: rtl;
    text-align: right;
}

.input-group-custom.has-toggle input {
    padding-left: 44px;
}

.input-group-custom input::placeholder {
    color: var(--ultras-muted);
    opacity: 1;
}

.input-group-custom input:focus {
    border-color: var(--ultras-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 149, 0, 0.15);
}

.show-pass {
    position: absolute;
    left: 12px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ultras-muted);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.show-pass i {
    font-size: 1.1rem;
    line-height: 1;
    pointer-events: none;
}

.show-pass:hover {
    color: var(--ultras-blue-bright);
    background: rgba(74, 122, 184, 0.12);
}

.forgot {
    display: block;
    text-align: left;
    color: var(--ultras-blue-bright);
    text-decoration: none;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lux-blue-bright, #7ec8ff), var(--lux-blue, #1a4a8a));
    color: #000;
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 10px 32px rgba(77, 166, 255, 0.5);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    font-family: var(--ultras-font);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(77, 166, 255, 0.5);
}

.switch-area {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--ultras-muted);
    font-size: 0.95rem;
}

.switch-area a {
    color: var(--ultras-orange-bright);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

#registerForm {
    display: none;
}

.auth-top-bar {
    width: 100%;
    max-width: 1220px;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ultras-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--ultras-border);
    background: rgba(8, 18, 36, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-back-link i {
    font-size: 1rem;
    line-height: 1;
}

.auth-back-link:hover {
    color: var(--ultras-orange);
    border-color: rgba(74, 122, 184, 0.45);
    background: rgba(21, 34, 53, 0.9);
}

.auth-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 950px) {
    .auth-top-bar {
        margin-bottom: 0.5rem;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-banner-side {
        min-height: 200px;
        border-left: none;
        border-bottom: 2px solid var(--ultras-orange);
    }

    .auth-banner-side img {
        max-height: 220px;
    }

    .auth-features {
        grid-template-columns: 1fr;
    }

    .form-side {
        padding: 2.5rem 1.25rem;
    }
}
