/* ============================================================
   MY DEAR HONEY — AUTH (LOGIN / REGISTER) STYLES
   Scoped under .auth-page on <body>
   ============================================================ */

.auth-page {
    --rose:       #C94F7C;
    --rose-mid:   #E8547A;
    --rose-light: #E88C8C;
    --blush:      #F6C1C1;
    --blush-pale: #FFF5F5;
    --cream:      #FDF8F8;
    --dark:       #2D1B2E;
    --text:       #4A3040;
    --muted:      #8A6878;

    --grad-primary: linear-gradient(135deg, #C94F7C 0%, #E8547A 60%, #E88C8C 100%);
    --grad-soft:    linear-gradient(135deg, #FFF5F5 0%, #FDE8EE 100%);
    --grad-hero:    linear-gradient(135deg, #FDF0F6 0%, #FFF0F3 50%, #FCE8E8 100%);

    --shadow-sm: 0 4px 16px rgba(201,79,124,0.10);
    --shadow-md: 0 8px 32px rgba(201,79,124,0.14);
    --shadow-lg: 0 16px 56px rgba(201,79,124,0.20);

    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--grad-hero);
    min-height: 100vh;
}

/* ── stability — neutralize legacy WOW / animated entrances ── */
.auth-page .wow,
.auth-page .animated,
.auth-page [class*="bounceIn"],
.auth-page [class*="fadeIn"] {
    visibility: visible !important;
    opacity: 1 !important;
    animation-name: none !important;
    transform: none !important;
}

/* ══════════════════════════════════════════════════════════
   BACKGROUND / AMBIENT
   ══════════════════════════════════════════════════════════ */
.auth-shell {
    position: relative;
    min-height: 100vh;
    padding: 60px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-shell::before,
.auth-shell::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}
.auth-shell::before {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #F6C1C1 0%, transparent 70%);
    top: -160px; left: -160px;
}
.auth-shell::after {
    width: 620px; height: 620px;
    background: radial-gradient(circle, #E88C8C 0%, transparent 70%);
    bottom: -220px; right: -220px;
}

/* floating hearts */
.auth-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.auth-hearts i {
    position: absolute;
    color: rgba(201,79,124,0.18);
    font-size: 22px;
    animation: authFloat 14s ease-in-out infinite;
}
.auth-hearts i:nth-child(1) { top: 12%; left: 6%;  font-size: 28px; animation-delay: 0s; }
.auth-hearts i:nth-child(2) { top: 22%; right: 9%; font-size: 20px; animation-delay: 2s; }
.auth-hearts i:nth-child(3) { bottom: 18%; left: 12%; font-size: 24px; animation-delay: 4s; }
.auth-hearts i:nth-child(4) { bottom: 10%; right: 18%; font-size: 32px; animation-delay: 6s; }
.auth-hearts i:nth-child(5) { top: 45%; left: 3%;  font-size: 18px; animation-delay: 1s; }
.auth-hearts i:nth-child(6) { top: 55%; right: 4%; font-size: 26px; animation-delay: 3s; }

@keyframes authFloat {
    0%, 100% { transform: translateY(0) rotate(0deg);   opacity: 0.5; }
    50%      { transform: translateY(-28px) rotate(12deg); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════
   SPLIT CARD
   ══════════════════════════════════════════════════════════ */
.auth-wrap {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1060px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(201,79,124,0.20), 0 10px 30px rgba(45,27,46,0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 620px;
    animation: authRise 0.8s ease-out both;
}
@keyframes authRise {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   BRAND PANEL
   ══════════════════════════════════════════════════════════ */
.auth-brand {
    position: relative;
    padding: 52px 46px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(201,79,124,0.92) 0%, rgba(232,84,122,0.88) 55%, rgba(232,140,140,0.85) 100%),
        url('https://images.unsplash.com/photo-1529634310410-0c3fcb8a40ab?auto=format&fit=crop&w=1400&q=80') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth-brand::after {
    content: '\f004';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -50px; bottom: -70px;
    font-size: 280px;
    color: rgba(255,255,255,0.08);
    pointer-events: none;
}

.auth-brand-top .logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 36px;
}
.auth-brand-top .logo-badge i {
    background: rgba(255,255,255,0.2);
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.auth-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}
.auth-brand h2 em {
    font-style: italic;
    color: #FFE5EE;
}
.auth-brand .brand-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 30px;
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 34px 0;
    position: relative;
    z-index: 2;
}
.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: rgba(255,255,255,0.95);
    font-size: 14.5px;
    font-weight: 500;
}
.auth-benefits li i {
    background: rgba(255,255,255,0.22);
    width: 32px; height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.25);
    position: relative;
    z-index: 2;
}
.auth-stats .stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.auth-stats .stat span {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════════
   FORM PANEL
   ══════════════════════════════════════════════════════════ */
.auth-form {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.auth-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-soft);
    color: var(--rose);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #FDE8EE;
    align-self: flex-start;
    margin-bottom: 18px;
}

.auth-form h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.auth-form h1 em {
    font-style: italic;
    color: var(--rose);
}
.auth-form .auth-lede {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 30px;
}

/* form controls */
.auth-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.auth-field {
    position: relative;
    margin-bottom: 18px;
}
/* Inner wrapper so icon/toggle align to the input only, not the whole field */
.auth-field .auth-input {
    position: relative;
}
.auth-field .auth-input .field-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--rose);
    font-size: 14px;
    pointer-events: none;
    opacity: 0.85;
    z-index: 2;
}
.auth-field input.form-control {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1.5px solid #F3DDE4;
    border-radius: 14px;
    background: #FFF9FB;
    font-size: 14.5px;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}
.auth-field input.form-control::placeholder { color: #C9AEB7; }
.auth-field input.form-control:hover { border-color: var(--blush); }
.auth-field input.form-control:focus {
    outline: none;
    border-color: var(--rose);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201,79,124,0.10);
}
.auth-field input.form-control.is-invalid {
    border-color: #E86A6A;
    background-color: #FFF5F5;
    background-image: none;
}
.auth-field select.form-select.is-invalid,
.auth-field select.form-control.is-invalid {
    border-color: #E86A6A;
    background-color: #FFF5F5;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E86A6A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 44px;
}
.auth-field .invalid-feedback {
    display: block;
    color: #E86A6A;
    font-size: 12.5px;
    margin-top: 6px;
    padding-left: 4px;
}
.auth-field .invalid-feedback:empty { display: none; }

/* toggle password eye */
.auth-field .auth-input .toggle-eye {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    z-index: 2;
}
.auth-field .auth-input .toggle-eye:hover { color: var(--rose); }

/* remember + forgot */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}
.auth-options .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.auth-options .form-check-input {
    width: 16px; height: 16px;
    border: 1.5px solid #E4C4CE;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}
.auth-options .form-check-input:checked {
    background-color: var(--rose);
    border-color: var(--rose);
}
.auth-options .form-check-label {
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
}
.auth-options a.auth-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rose);
}
.auth-options a.auth-link:hover { color: var(--rose-mid); text-decoration: underline; }

/* submit button */
.auth-submit {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--grad-primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(201,79,124,0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(201,79,124,0.42);
}
.auth-submit i { font-size: 14px; }

/* divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #F3DDE4;
}

/* footer link */
.auth-footer {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
.auth-footer a {
    color: var(--rose);
    font-weight: 700;
    margin-left: 6px;
}
.auth-footer a:hover { color: var(--rose-mid); text-decoration: underline; }

/* small back-home pill */
.auth-back {
    position: absolute;
    top: 26px; left: 26px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--rose);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.auth-back:hover { transform: translateX(-3px); color: var(--rose-mid); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   REGISTER-SPECIFIC EXTENSIONS
   ══════════════════════════════════════════════════════════ */

/* wider card for register */
.auth-wrap.auth-wrap--wide { max-width: 1240px; min-height: 660px; }
.auth-wrap.auth-wrap--wide .auth-brand { padding: 56px 48px; }

/* 2-col form grid */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

/* select styling (matches inputs) */
.auth-field select.form-select,
.auth-field select.form-control {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1.5px solid #F3DDE4;
    border-radius: 14px;
    background: #FFF9FB;
    font-size: 14.5px;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C94F7C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 44px;
}
.auth-field select:focus {
    outline: none;
    border-color: var(--rose);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(201,79,124,0.10);
}

/* section heading inside form */
.auth-section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 18px 0 16px;
    position: relative;
    padding-left: 14px;
}
.auth-section-heading::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 4px;
    border-radius: 3px;
    background: var(--grad-primary);
}

/* plan cards */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.plan-card {
    position: relative;
    background: #fff;
    border: 2px solid #F3DDE4;
    border-radius: 18px;
    padding: 22px 18px 18px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
}
.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--blush);
    box-shadow: var(--shadow-sm);
}
.plan-card.is-selected {
    border-color: var(--rose);
    box-shadow: 0 10px 28px rgba(201,79,124,0.22);
    background: linear-gradient(180deg, #fff 0%, #FFF5F8 100%);
}
.plan-card .plan-ribbon {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 6px 14px rgba(201,79,124,0.3);
}
.plan-card .plan-ribbon.ribbon-alt {
    background: linear-gradient(135deg, #6B4E8C 0%, #9C6FAE 100%);
    box-shadow: 0 6px 14px rgba(107,78,140,0.3);
}
.plan-card .plan-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.plan-card .plan-price {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--rose);
    line-height: 1;
    margin: 8px 0 4px;
}
.plan-card .plan-price small {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 4px;
}
.plan-card ul.plan-feats {
    list-style: none;
    padding: 14px 0 14px;
    margin: 12px 0 0;
    border-top: 1px dashed #F3DDE4;
    text-align: left;
    flex-grow: 1;
}
.plan-card ul.plan-feats li {
    font-size: 12.5px;
    color: var(--text);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plan-card ul.plan-feats li i { font-size: 11px; flex-shrink: 0; }
.plan-card ul.plan-feats li i.fa-check { color: #3BB67A; }
.plan-card ul.plan-feats li i.fa-times { color: #D47890; }
.plan-card ul.plan-feats li.is-muted { color: #B59AA4; }

.plan-card .plan-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--grad-soft);
    color: var(--rose);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}
.plan-card .plan-pick input { accent-color: var(--rose); }
.plan-card.is-selected .plan-pick {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
}

#plansSection { margin-top: 10px; }
#plansSection .invalid-feedback.d-block {
    color: #E86A6A;
    font-size: 12.5px;
    margin-top: 8px;
}

/* 1100px — register's plan grid drops to 2 cols when card is narrower */
@media (max-width: 1100px) {
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 960px — split card stacks (brand on top, form below) */
@media (max-width: 960px) {
    .auth-shell {
        flex-direction: column;
        padding: 40px 16px;
    }
    .auth-back {
        position: static;
        display: inline-flex;
        margin-bottom: 20px;
        align-self: flex-start;
    }

    .auth-wrap { grid-template-columns: 1fr; max-width: 540px; }
    .auth-wrap.auth-wrap--wide { max-width: 720px; }

    .auth-brand { padding: 40px 36px; min-height: 220px; }
    .auth-brand::after { font-size: 200px; right: -30px; bottom: -50px; }
    .auth-brand h2 { font-size: 30px; }

    .auth-form { padding: 42px 36px; }
    .auth-form h1 { font-size: 28px; }
}

/* 720px — register's wide card uses full available width */
@media (max-width: 720px) {
    .auth-wrap.auth-wrap--wide { max-width: 100%; }
}

/* 640px — register form's 2-col field grid stacks; plan cards stack */
@media (max-width: 640px) {
    .auth-grid-2 { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr; }
}

/* 520px — phone refinements */
@media (max-width: 520px) {
    .auth-shell { padding: 30px 12px; }

    .auth-brand { padding: 32px 26px; min-height: auto; }
    .auth-brand h2 { font-size: 26px; }
    .auth-brand .brand-sub { font-size: 14px; }

    .auth-form { padding: 34px 24px; }
    .auth-form h1 { font-size: 24px; }
    .auth-form .auth-lede { font-size: 13.5px; }

    .auth-benefits li { font-size: 13.5px; }
    .auth-stats .stat strong { font-size: 22px; }

    .auth-section-heading { font-size: 18px; }
    .plan-card { padding: 18px 14px 14px; }
    .plan-card .plan-price { font-size: 28px; }
}

/* 400px — small phones (iPhone SE, older Android) */
@media (max-width: 400px) {
    .auth-shell { padding: 20px 10px; }
    .auth-wrap { border-radius: 20px; }

    .auth-brand { padding: 24px 20px; }
    .auth-brand h2 { font-size: 22px; line-height: 1.25; }
    .auth-brand-top .logo-badge { font-size: 18px; margin-bottom: 22px; }
    .auth-brand-top .logo-badge i { width: 32px; height: 32px; font-size: 13px; }
    .auth-brand .brand-sub { font-size: 13px; line-height: 1.6; margin-bottom: 22px; }

    .auth-benefits { margin-bottom: 24px; }
    .auth-benefits li { font-size: 12.5px; gap: 10px; padding: 8px 0; }
    .auth-benefits li i { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }

    .auth-stats { gap: 8px; padding-top: 18px; }
    .auth-stats .stat strong { font-size: 18px; }
    .auth-stats .stat span { font-size: 10.5px; }

    .auth-form { padding: 26px 18px; }
    .auth-tag { font-size: 10.5px; padding: 5px 10px; letter-spacing: 1px; }
    .auth-form h1 { font-size: 21px; }
    .auth-form .auth-lede { font-size: 13px; margin-bottom: 22px; }

    .auth-section-heading { font-size: 16px; margin: 14px 0 12px; padding-left: 12px; }

    .auth-field { margin-bottom: 14px; }
    .auth-field .form-label { font-size: 12.5px; }
    .auth-field input.form-control,
    .auth-field select.form-select,
    .auth-field select.form-control {
        font-size: 14px;
        padding: 12px 14px 12px 40px;
    }
    .auth-field .auth-input .field-icon { left: 14px; font-size: 13px; }
    .auth-field .auth-input .toggle-eye { right: 12px; font-size: 13px; }

    .auth-submit { padding: 13px 16px; font-size: 14px; }
    .auth-divider { margin: 20px 0 14px; font-size: 11px; }
    .auth-footer { font-size: 13px; }

    .plan-card { padding: 16px 12px 12px; border-radius: 14px; }
    .plan-card .plan-name { font-size: 16px; }
    .plan-card .plan-price { font-size: 24px; }
    .plan-card ul.plan-feats li { font-size: 12px; }
    .plan-card .plan-pick { padding: 8px 10px; font-size: 12px; }

    .auth-back { font-size: 12px; padding: 8px 14px; }

    /* shrink ambient blobs so they don't overpower tiny viewports */
    .auth-shell::before { width: 320px; height: 320px; top: -100px; left: -100px; }
    .auth-shell::after  { width: 360px; height: 360px; bottom: -120px; right: -120px; }
}
