/* ============================================================
   Luxury Perfume Brand — Sign In Page Styles
   ============================================================ */

/* --- Google Fonts (optional: remove if you prefer system fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
    --mf-bg: #faf8f5;
    --mf-bg-dark: #1a1714;
    --mf-card: #ffffff;
    --mf-border: #e8e2d9;
    --mf-text: #2c2824;
    --mf-text-light: #7a7269;
    --mf-text-muted: #a89f94;
    --mf-accent: #b8860b;
    --mf-accent-dark: #9a7209;
    --mf-accent-light: #d4a843;
    --mf-error: #b1272c;
    --mf-error-bg: #fdf2f2;
    --mf-success: #2e7d32;
    --mf-success-bg: #f0f9f0;
    --mf-radius: 14px;
    --mf-radius-sm: 10px;
    --mf-shadow: 0 4px 24px rgba(26, 23, 20, 0.06);
    --mf-shadow-lg: 0 20px 60px rgba(26, 23, 20, 0.12);
}

/* --- General Reset & Layout --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.is-minimal {
    background-color: var(--mf-bg);
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--mf-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Login Shell (full-page wrapper) --- */
.login-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 48px 20px 24px;
    width: 100%;
}

/* --- Login Card --- */
.login-card {
    background: var(--mf-card);
    width: 100%;
    max-width: 460px;
    padding: 48px 44px 40px;
    border-radius: var(--mf-radius);
    box-shadow: var(--mf-shadow);
    border: 1px solid var(--mf-border);
    text-align: left;
    position: relative;
}

/* --- Back Link --- */
.login-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-text-muted);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.25s ease;
}

.login-back__icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.login-back:hover {
    color: var(--mf-accent);
}

.login-back:hover .login-back__icon {
    transform: translateX(-3px);
}

//* ================================
   LUXURY BRAND HEADER
================================ */

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 38px;
    position: relative;
}

/* --- Brand Logo --- */

.logo-placeholder {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    font-style: italic;
    color: var(--mf-text);
    letter-spacing: 0.08em;
    text-decoration: none;
    margin-bottom: 16px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo-placeholder:hover {
    color: var(--mf-accent);
    transform: translateY(-1px);
}

/* --- Elegant Gold Divider --- */

.brand-rule {
    width: 70px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(176, 141, 87, 0.25) 15%,
        #b08d57 50%,
        rgba(176, 141, 87, 0.25) 85%,
        transparent 100%
    );
    margin-bottom: 22px;
    position: relative;
}

.brand-rule::before,
.brand-rule::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #b08d57;
    transform: translateY(-50%) rotate(45deg);
}

.brand-rule::before {
    left: 50%;
}

.brand-rule::after {
    display: none;
}


/* ================================
   LUXURY TRUST BADGES
================================ */

.badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}


/* --- Individual Badge --- */

.badge {
    position: relative;

    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 11px;

    font-family: 'Jost', sans-serif;
    font-size: 8px;
    font-weight: 600;

    line-height: 1.25;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    text-align: center;

    color: #f8f3e9;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.08),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #4b1014,
            #25070a 70%,
            #160406
        );

    border: 1px solid rgba(176, 141, 87, 0.75);

    border-radius: 50%;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18),
        inset 0 0 0 3px rgba(176, 141, 87, 0.08),
        inset 0 0 12px rgba(176, 141, 87, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Inner Luxury Ring */

.badge::before {
    content: "";
    position: absolute;
    inset: 5px;

    border: 1px solid rgba(176, 141, 87, 0.28);

    border-radius: 50%;

    pointer-events: none;
}


/* Tiny Gold Accent */

.badge::after {
    content: "✦";

    position: absolute;
    top: 7px;
    left: 50%;

    transform: translateX(-50%);

    color: #c6a56a;

    font-size: 7px;
    line-height: 1;

    opacity: 0.9;
}


/* --- Hover Effect --- */

.badge:hover {
    transform: translateY(-4px);

    border-color: #c6a56a;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25),
        0 0 18px rgba(176, 141, 87, 0.12),
        inset 0 0 14px rgba(176, 141, 87, 0.12);
}


/* ================================
   INDIVIDUAL BADGE VARIATIONS
================================ */

.badge-red-1 {
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.09),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #64191e,
            #32090c 70%,
            #1c0507
        );
}

.badge-red-2 {
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.09),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #721b21,
            #390b0f 70%,
            #1d0507
        );
}

.badge-red-3 {
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.09),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #521116,
            #280609 70%,
            #140304
        );

    border-radius: 50%;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {

    .brand-header {
        margin-bottom: 28px;
    }

    .logo-placeholder {
        font-size: 29px;
        letter-spacing: 0.06em;
        margin-bottom: 13px;
    }

    .brand-rule {
        width: 55px;
        margin-bottom: 18px;
    }

    .badge-container {
        gap: 9px;
    }

    .badge {
        width: 68px;
        height: 68px;
        padding: 10px;

        font-size: 7px;
        letter-spacing: 0.055em;
    }

    .badge::before {
        inset: 4px;
    }

    .badge::after {
        top: 6px;
        font-size: 6px;
    }
}


/* ================================
   VERY SMALL MOBILE
================================ */

@media (max-width: 380px) {

    .badge-container {
        gap: 7px;
    }

    .badge {
        width: 62px;
        height: 62px;
        padding: 8px;
        font-size: 6.5px;
    }
}

/* --- Heading --- */
.login-heading {
    text-align: left;
    margin-bottom: 24px;
}

.login-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--mf-text);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--mf-text-light);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* --- Alerts --- */
.login-alert {
    padding: 12px 16px;
    border-radius: var(--mf-radius-sm);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.login-alert--error {
    background: var(--mf-error-bg);
    border: 1px solid #f0c8c8;
    color: var(--mf-error);
}

.login-alert--success {
    background: var(--mf-success-bg);
    border: 1px solid #c0e0c0;
    color: var(--mf-success);
}

/* --- Shop Button --- */
.btn-shop {
    display: block;
    width: 100%;
    background: var(--mf-bg-dark);
    color: #fff;
    border: 1px solid var(--mf-bg-dark);
    padding: 15px;
    border-radius: var(--mf-radius-sm);
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 22px;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
}

.btn-shop:hover {
    background: transparent;
    color: var(--mf-bg-dark);
    text-decoration: none;
    border-color: var(--mf-bg-dark);
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--mf-text-muted);
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--mf-border);
}

.divider span {
    padding: 0 14px;
}

/* --- Form --- */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 4px;
}

.form-label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--mf-text-light);
    margin-bottom: 7px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field-error {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: var(--mf-error);
    margin: -10px 0 14px;
    line-height: 1.4;
}

.input-field {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--mf-border);
    border-radius: var(--mf-radius-sm);
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--mf-text);
    background: var(--mf-bg);
    outline: none;
    margin-bottom: 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-field::placeholder {
    color: var(--mf-text-muted);
    font-weight: 300;
}

.input-field:focus {
    border-color: var(--mf-accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    background: #fff;
}

.input-field.is-invalid {
    border-color: var(--mf-error);
    background-color: #fffafa;
}

.input-field.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(177, 39, 44, 0.1);
}

/* --- Continue Button --- */
.btn-continue {
    width: 100%;
    background: var(--mf-accent);
    color: #fff;
    border: 1px solid var(--mf-accent);
    padding: 15px;
    border-radius: var(--mf-radius-sm);
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 22px;
    transition: all 0.25s ease;
}

.btn-continue:hover {
    background: var(--mf-accent-dark);
    border-color: var(--mf-accent-dark);
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.3);
}

.btn-continue:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.2);
}

/* --- Checkbox --- */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 13.5px;
    font-weight: 300;
    color: var(--mf-text-light);
    margin-bottom: 26px;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mf-accent);
    flex-shrink: 0;
    border-radius: 4px;
}

/* --- Agreement Text --- */
.agreement-text {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--mf-text-muted);
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.link-style {
    color: var(--mf-text-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.link-style:hover {
    color: var(--mf-accent);
}

/* --- Page Footer --- */
.page-footer {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--mf-text-muted);
    text-align: center;
    padding: 16px 20px 28px;
    letter-spacing: 0.02em;
}

/* ============================================================
   Modal Overlay
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 23, 20, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Modal Box --- */
.modal-box {
    background: var(--mf-card);
    width: 100%;
    max-width: 580px;
    border-radius: var(--mf-radius);
    padding: 36px 36px 32px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--mf-shadow-lg);
    border: 1px solid var(--mf-border);
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

/* --- Modal Header --- */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--mf-border);
}

.modal-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--mf-text);
    letter-spacing: 0.02em;
}

.close-icon-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--mf-text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-icon-btn:hover {
    color: var(--mf-accent);
    transform: rotate(90deg);
}

/* --- Modal Body --- */
.modal-body {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--mf-text);
    line-height: 1.7;
}

.term-item {
    margin-bottom: 16px;
    padding-left: 4px;
    position: relative;
}

.term-item:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .login-shell {
        padding: 24px 16px 16px;
    }

    .login-card {
        padding: 32px 24px 28px;
        border-radius: 12px;
    }

    .logo-placeholder {
        font-size: 26px;
    }

    .login-title {
        font-size: 24px;
    }

    .badge {
        width: 38px;
        height: 38px;
        font-size: 6.5px;
    }

    .page-footer {
        font-size: 11px;
        padding: 12px 16px 20px;
    }

    .modal-box {
        padding: 28px 24px 24px;
        border-radius: 12px;
    }

    .modal-title {
        font-size: 20px;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 26px 18px 22px;
    }

    .brand-header {
        margin-bottom: 24px;
    }

    .logo-placeholder {
        font-size: 22px;
    }

    .login-title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
    }

    .badge {
        width: 34px;
        height: 34px;
        font-size: 6px;
    }

    .input-field {
        padding: 13px 14px;
        font-size: 13px;
    }

    .btn-shop,
    .btn-continue {
        padding: 13px;
        font-size: 13px;
    }

    .modal-box {
        padding: 22px 18px 20px;
    }

    .modal-body {
        font-size: 13px;
    }
}