/* ==========================================================================
   Auth — broadcast card shell (aligned with quick-add / product cards)
   ========================================================================== */

#atelier-auth.auth-overlay.glass-overlay,
#atelier-auth.glass-overlay {
    background: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.is-low-power #atelier-auth.glass-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 10, 18, 0.88);
}

.auth-container {
    background:
        linear-gradient(165deg, rgba(255, 77, 0, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, rgba(12, 20, 34, 0.98) 0%, rgba(4, 8, 14, 0.99) 100%);
    border: 1px solid rgba(34, 232, 144, 0.22);
    border-left: 3px solid var(--sf-primary, #ff4d00);
    border-radius: var(--radius-overlay, 12px);
    width: 94%;
    max-width: 920px;
    box-sizing: border-box;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(255, 77, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 30px, 0);
    will-change: transform, opacity;
}

.auth-close-btn {
    position: absolute;
    top: 22px;
    right: 24px;
    background: none;
    border: none;
    font-family: "Sora", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--sf-muted, #9aa8bc);
    transition: color 0.25s ease;
    z-index: 10;
    padding: 6px 0;
}

.auth-close-btn:hover,
.auth-close-btn:focus-visible {
    color: var(--sf-chrome, #eef4ff) !important;
    background: transparent !important;
    outline: none;
}

.auth-bento-layout {
    display: flex;
    min-height: 520px;
}

.auth-media-panel {
    flex: 1;
    position: relative;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    overflow: hidden;
    border-right: 1px solid rgba(34, 232, 144, 0.14);
    background: rgba(8, 14, 24, 0.85);
}

.auth-media-panel .auth-stadium {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-media-info {
    position: relative;
    z-index: 2;
}

.auth-tag {
    display: inline-block;
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--sf-primary-bright, #ffb000);
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(255, 176, 0, 0.35);
}

.auth-media-panel h3 {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--sf-chrome, #eef4ff);
    margin: 10px 0 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.auth-brand-num {
    color: var(--sf-primary, #ff4d00);
}

.auth-media-panel p {
    font-family: "Sora", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(238, 244, 255, 0.78);
    letter-spacing: 0.01em;
    margin: 0;
    max-width: 28ch;
}

.auth-form-panel {
    flex: 1.15;
    padding: 52px 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background: rgba(6, 10, 18, 0.55);
}

.auth-header {
    margin-bottom: 28px;
    padding-right: 48px;
}

.auth-header h2 {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--sf-chrome, #eef4ff);
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sf-muted, #9aa8bc);
    opacity: 1;
    margin: 0;
    text-transform: none;
    line-height: 1.45;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(168, 240, 200, 0.9);
    text-transform: uppercase;
}

.auth-password-wrap {
    position: relative;
    width: 100%;
}

.auth-password-wrap input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(168, 240, 200, 0.75);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--sf-chrome, #eef4ff);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.auth-password-toggle-icon {
    display: block;
}

.auth-password-toggle-icon--hide {
    display: none;
}

.auth-password-toggle.is-revealed .auth-password-toggle-icon--show {
    display: none;
}

.auth-password-toggle.is-revealed .auth-password-toggle-icon--hide {
    display: block;
}

.auth-input-group input {
    background: rgba(8, 14, 24, 0.65);
    border: 1px solid rgba(34, 232, 144, 0.2);
    border-radius: var(--radius-button, 6px);
    padding: 14px 16px;
    font-family: "Sora", sans-serif;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--sf-chrome, #eef4ff);
    outline: none !important;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    box-sizing: border-box;
    width: 100%;
}

.auth-input-group input:focus {
    background: rgba(8, 14, 24, 0.85);
    border-color: rgba(255, 77, 0, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.14) !important;
}

.auth-input-group input::placeholder {
    color: rgba(154, 168, 188, 0.7);
}

.auth-feedback-box {
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.45;
    text-transform: none;
    border-radius: var(--radius-button, 6px);
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        padding 0.3s ease,
        max-height 0.3s ease,
        opacity 0.3s ease;
    box-sizing: border-box;
}

.auth-feedback-box.is-error {
    background: rgba(255, 90, 90, 0.1);
    border: 1px solid rgba(255, 90, 90, 0.35);
    color: #ff8a8a;
    padding: 12px 14px;
    max-height: 120px;
    opacity: 1;
}

.auth-feedback-box.is-success {
    background: rgba(93, 222, 160, 0.1);
    border: 1px solid rgba(93, 222, 160, 0.35);
    color: #5ddea0;
    padding: 12px 14px;
    max-height: 120px;
    opacity: 1;
}

.auth-footer {
    margin-top: 4px;
    display: flex;
    justify-content: stretch;
}

.auth-footer .auth-submit-btn,
.auth-footer .product-quick-add-btn,
.auth-footer .atelier-btn-premium {
    width: 100%;
    max-width: none;
    padding: 14px 18px;
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-button, 6px);
    cursor: pointer;
}

.auth-form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.auth-toggle-link-container {
    margin-top: 22px;
    text-align: center;
    border-top: 1px solid rgba(34, 232, 144, 0.14);
    padding-top: 18px;
}

.auth-toggle-link {
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sf-secondary, #22e890);
    text-decoration: none;
    text-transform: none;
    transition: color 0.25s ease;
    display: inline-block;
}

.auth-toggle-link:hover {
    color: var(--sf-primary-bright, #ffb000);
}

.auth-forgot-link-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: -2px;
}

.auth-forgot-link {
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sf-muted, #9aa8bc);
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-forgot-link:hover {
    color: var(--sf-primary-bright, #ffb000);
}

@media (max-width: 860px) {
    .auth-container {
        max-width: 500px;
    }

    .auth-bento-layout {
        flex-direction: column;
    }

    .auth-media-panel {
        padding: 28px 24px;
        min-height: 180px;
        border-right: none;
        border-bottom: 1px solid rgba(34, 232, 144, 0.14);
    }

    .auth-media-panel h3 {
        font-size: 1.45rem;
    }

    .auth-form-panel {
        padding: 28px 24px 32px;
    }

    .auth-header {
        margin-bottom: 20px;
        padding-right: 40px;
    }

    .auth-close-btn {
        top: 16px;
        right: 18px;
    }
}
