/* Sign in / Sign up — storefront auth */

.icg-auth-page .mobile-shell {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
}

.icg-auth-wrap {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
}

.icg-auth-visual {
    position: relative;
    padding: 48px 40px;
    background: linear-gradient(145deg, var(--icg-green-dark, #1e4d24) 0%, var(--icg-green, #2d6a35) 55%, #3d8a47 100%);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.icg-auth-visual::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(245, 197, 24, 0.12);
    pointer-events: none;
}

.icg-auth-visual::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.icg-auth-visual-inner {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.icg-auth-visual h2 {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.icg-auth-visual p {
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.92;
    margin: 0 0 28px;
}

.icg-auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.icg-auth-features > div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.icg-auth-features i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(245, 197, 24, 0.2);
    color: var(--icg-yellow, #f5c518);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.icg-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px 48px;
    background: var(--icg-white, #fff);
}

.icg-auth-card {
    width: 100%;
    max-width: 400px;
    animation: mcFadeUp 0.45s ease backwards;
}

.icg-auth-brand {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 20px;
    padding: 0;
    line-height: 0;
    text-decoration: none;
    color: inherit;
}

.icg-auth-brand-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 72px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left center;
}

.icg-auth-card h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.icg-auth-sub {
    font-size: 14px;
    color: var(--icg-muted, #3d3d3d);
    margin: 0 0 24px;
}

.icg-auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.icg-auth-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.icg-auth-alert--success {
    background: var(--icg-green-soft, #eef8ee);
    color: var(--icg-green-dark, #1e4d24);
    border: 1px solid var(--icg-border, #c8e6c9);
}

.icg-auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--icg-black, #0a0a0a);
    margin-bottom: 6px;
}

.icg-auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--icg-border, #c8e6c9);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 16px;
    background: #fff;
    color: var(--icg-black, #0a0a0a);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.icg-auth-form input:focus {
    outline: none;
    border-color: var(--icg-green, #2d6a35);
    box-shadow: 0 0 0 3px rgba(45, 106, 53, 0.15);
}

.icg-auth-hint {
    margin: -10px 0 14px;
    font-size: 12px;
    color: var(--icg-muted, #3d3d3d);
    line-height: 1.4;
}

.icg-auth-form .icg-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.icg-auth-form .icg-auth-row input {
    margin-bottom: 0;
}

.icg-auth-form .icg-auth-row + label,
.icg-auth-form .icg-auth-row + input {
    margin-top: 16px;
}

.icg-auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: var(--icg-green, #2d6a35);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}

.icg-auth-submit:hover {
    background: var(--icg-green-dark, #1e4d24);
}

.icg-auth-switch {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
    color: var(--icg-muted, #3d3d3d);
}

.icg-auth-switch a {
    color: var(--icg-green, #2d6a35);
    font-weight: 600;
    text-decoration: none;
}

.icg-auth-switch a:hover {
    text-decoration: underline;
}

.icg-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--icg-muted, #3d3d3d);
    text-decoration: none;
}

.icg-auth-back:hover {
    color: var(--icg-green-dark, #1e4d24);
}

.icg-auth-db-notice {
    max-width: 480px;
    margin: 48px auto;
    padding: 32px;
    text-align: center;
    border: 1.5px solid var(--icg-border, #c8e6c9);
    border-radius: 14px;
    background: var(--icg-green-soft, #eef8ee);
}

.icg-auth-db-notice h1 {
    font-size: 22px;
    margin-bottom: 12px;
}

.icg-auth-db-notice p {
    color: var(--icg-muted, #3d3d3d);
    margin-bottom: 20px;
    font-size: 14px;
}

.icg-auth-db-notice .icg-auth-submit {
    display: inline-flex;
    width: auto;
    padding: 12px 24px;
    text-decoration: none;
}

@media (max-width: 860px) {
    .icg-auth-wrap {
        grid-template-columns: 1fr;
    }

    .icg-auth-visual {
        padding: 32px 24px;
    }

    .icg-auth-panel {
        padding: 28px 20px 40px;
    }
}

@media (max-width: 480px) {
    .icg-auth-form .icg-auth-row {
        grid-template-columns: 1fr;
    }
}
