:root {
    --auth-gold: #c9a24d;
    --auth-gold-dark: #a8832f;
    --auth-ink: #1e1e1e;
    --auth-ink-soft: #3a3a3a;
    --auth-muted: #6f644f;
    --auth-cream: #f7f2e9;
    --auth-cream-soft: #efe6d8;
    --auth-card: #ffffff;
    --auth-border: #e7dcc7;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    color: var(--auth-ink);
    background:
        radial-gradient(1000px 560px at -8% -15%, rgba(201, 162, 77, 0.16), transparent 62%),
        radial-gradient(880px 520px at 110% 110%, rgba(168, 131, 47, 0.14), transparent 65%),
        linear-gradient(145deg, var(--auth-cream) 0%, var(--auth-cream-soft) 52%, #f6f0e5 100%);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.6rem, 2.8vw, 3.4rem);
}

.auth-page .auth-shell {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 2.2rem;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 77, 0.25);
    box-shadow: 0 24px 60px rgba(30, 30, 30, 0.12);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
}

.auth-visual {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    padding: clamp(2.2rem, 3.8vw, 4.4rem);
    color: #ffffff;
}

.auth-login .auth-visual {
    background:
        linear-gradient(140deg, rgba(30, 30, 30, 0.72), rgba(168, 131, 47, 0.58)),
        url('../images/product-gold-necklace.jpg') center/cover no-repeat;
}

.auth-register .auth-visual {
    background:
        linear-gradient(140deg, rgba(30, 30, 30, 0.72), rgba(168, 131, 47, 0.58)),
        url('../images/product-diamond-ring.jpg') center/cover no-repeat;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.24), transparent 45%);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    width: fit-content;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.auth-brand img {
    width: 3.8rem;
    height: 3.8rem;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem;
}

.auth-brand span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-visual h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 4.3vw, 4.7rem);
    line-height: 1.1;
}

.auth-visual p {
    margin: 0;
    max-width: 45ch;
    font-size: 1.42rem;
    line-height: 1.75;
}

.auth-feature-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.6rem;
}

.auth-feature-list p {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.32rem;
}

.auth-feature-list i {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.auth-page form.auth-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--auth-card) !important;
    padding: clamp(2.3rem, 3vw, 3.4rem) !important;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-card-head h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: var(--auth-ink);
    font-size: clamp(2.8rem, 3.2vw, 3.7rem);
}

.auth-card-head p {
    margin: 0.55rem 0 0;
    color: var(--auth-muted);
    font-size: 1.33rem;
}

.auth-field {
    display: grid;
    gap: 0.62rem;
}

.auth-field label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--auth-ink-soft);
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.88rem;
    min-height: 5.2rem;
    border: 1px solid var(--auth-border);
    border-radius: 1.15rem;
    background: #fffdf9;
    padding: 0 1.2rem;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--auth-gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 77, 0.18);
}

.auth-input-wrap i {
    color: var(--auth-gold-dark);
    font-size: 1.3rem;
}

.auth-input-wrap input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--auth-ink);
    background: transparent;
    font-size: 1.42rem;
    padding: 1.25rem 0;
}

.auth-input-wrap input::placeholder {
    color: #b0a489;
}

.password-toggle {
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5efdf;
    color: var(--auth-gold-dark);
    transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
    background: #ebdfc1;
    color: #876520;
}

.auth-file-input {
    width: 100%;
    min-height: 5.2rem;
    border: 1px dashed #d6c8a8;
    border-radius: 1.15rem;
    padding: 0.9rem;
    background: #fffcf7;
    color: var(--auth-muted);
    font-size: 1.28rem;
}

.auth-file-input::file-selector-button {
    border: 0;
    border-radius: 0.85rem;
    background: #efe4cc;
    color: #6d531e;
    padding: 0.82rem 1rem;
    margin-right: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-help-text {
    margin: 0;
    font-size: 1.2rem;
    color: var(--auth-muted);
}

.auth-btn {
    width: 100%;
    min-height: 5.1rem;
    border: 0;
    border-radius: 1.15rem;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--auth-gold), var(--auth-gold-dark));
    box-shadow: 0 12px 24px rgba(168, 131, 47, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(168, 131, 47, 0.38);
}

.auth-switch {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 1.3rem;
    color: var(--auth-muted);
}

.auth-switch a {
    color: #7a5b1e;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-body .message {
    width: min(760px, calc(100% - 2.4rem));
    margin: 1.1rem auto 0;
    padding: 1.05rem 1.4rem;
    border-radius: 1.1rem;
    background: #fff7e8;
    border: 1px solid #ebd7a8;
    color: #5f4c1f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.33rem;
}

.auth-body .message i {
    cursor: pointer;
}

@media (max-width: 1024px) {
    .auth-page .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 28rem;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1.2rem;
    }

    .auth-page .auth-shell {
        border-radius: 1.7rem;
    }

    .auth-page form.auth-card {
        padding: 2.1rem !important;
    }
}

@media (max-width: 480px) {
    .auth-brand span {
        display: none;
    }

    .auth-visual {
        padding: 2rem;
        gap: 1.25rem;
    }

    .auth-feature-list p {
        font-size: 1.22rem;
    }
}
