/* =========================================================
   WedCiores — Premium Wedding Login
   ========================================================= */

:root {
    --login-ivory: #FBF8F2;
    --login-white: #FFFFFF;
    --login-burgundy: #762C3B;
    --login-burgundy-dark: #57202D;
    --login-gold: #D9A441;
    --login-gold-light: #F0D9A4;
    --login-text: #342A2B;
    --login-muted: #8B8180;
    --login-border: #EAE1D8;
    --login-green: #287653;
}

/* =========================================================
   Page Background
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 5% 5%,
            rgba(217, 164, 65, 0.14),
            transparent 30%
        ),
        radial-gradient(
            circle at 95% 95%,
            rgba(118, 44, 59, 0.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #F7F1E8 0%,
            #FCFAF7 52%,
            #F8F1E9 100%
        );

    background-attachment: fixed;
    color: var(--login-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Decorative background details */

.login-decoration {
    position: fixed;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(217, 164, 65, 0.18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.login-decoration::before,
.login-decoration::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(217, 164, 65, 0.13);
    border-radius: 50%;
}

.login-decoration::before {
    inset: 22px;
}

.login-decoration::after {
    inset: 44px;
}

.login-decoration-top {
    top: -220px;
    left: -170px;
}

.login-decoration-bottom {
    right: -210px;
    bottom: -230px;
}

/* =========================================================
   Main Layout
   ========================================================= */

.login-layout {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);

    width: 100%;
    max-width: 1120px;
    min-height: 690px;

    background: var(--login-white);
    border: 1px solid rgba(118, 44, 59, 0.08);
    border-radius: 28px;
    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(52, 42, 43, 0.10),
        0 8px 24px rgba(52, 42, 43, 0.04);

    animation: loginAppear 0.65s ease both;
}

@keyframes loginAppear {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   Wedding Branding Panel
   ========================================================= */

.wedding-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-width: 0;
    padding: 54px 48px 28px;
    overflow: hidden;

    color: #FFFDF9;

    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(217, 164, 65, 0.13),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #762C3B 0%,
            #642433 52%,
            #4E1D29 100%
        );
}

/* Gold decorative rings */

.wedding-panel::before,
.wedding-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(240, 217, 164, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.wedding-panel::before {
    width: 390px;
    height: 390px;
    top: -210px;
    right: -210px;
}

.wedding-panel::after {
    width: 310px;
    height: 310px;
    bottom: -180px;
    left: -180px;
}

.wedding-panel-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: auto;
    text-align: center;
}

/* =========================================================
   Wedding Emblem
   ========================================================= */

.wedding-emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emblem-ornament {
    display: block;
    margin-bottom: 12px;

    color: var(--login-gold-light);
    font-family: Georgia, serif;
    font-size: 31px;
    line-height: 1;
}

.logo-circle {
    width: 94px;
    height: 94px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(240, 217, 164, 0.85);
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 0 0 7px rgba(240, 217, 164, 0.055),
        0 0 0 14px rgba(240, 217, 164, 0.025);

    color: #F5DCA4;
    font-family: 'Cinzel', serif;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -2px;
}

.emblem-caption {
    margin-top: 23px;

    color: rgba(255, 253, 249, 0.73);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.3px;
    text-transform: uppercase;
}

/* =========================================================
   Brand Typography
   ========================================================= */

.wedding-brand {
    margin-top: 42px;
}

.brand-eyebrow {
    color: var(--login-gold-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
}

.brand-title {
    margin: 9px 0 0;

    color: var(--login-gold-light);
    font-family: 'Alex Brush Local', 'Alex Brush', cursive;
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    width: 190px;
    margin: 20px auto 0;
}

.brand-divider span {
    height: 1px;
    flex: 1;

    background: linear-gradient(
        to right,
        transparent,
        rgba(240, 217, 164, 0.8)
    );
}

.brand-divider span:last-child {
    background: linear-gradient(
        to left,
        transparent,
        rgba(240, 217, 164, 0.8)
    );
}

.brand-divider i {
    color: var(--login-gold-light);
    font-size: 15px;
    font-style: normal;
}

/* =========================================================
   Wedding Details
   ========================================================= */

.wedding-details {
    margin-top: 34px;
}

.wedding-name {
    display: inline-block;
    max-width: 100%;
    padding: 9px 20px;

    border: 1px solid rgba(240, 217, 164, 0.32);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.055);

    color: #F4DEAE;
    font-family: 'WindSong Local', 'WindSong', cursive;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.wedding-name.devanagari {
    font-family: 'Rozha One', serif;
    font-size: 1.3rem;
    letter-spacing: 0;
}

.wedding-name.latin {
    font-family: 'WindSong Local', 'WindSong', cursive;
}

.couple {
    margin-top: 22px;

    color: #FFFDF9;
    font-family: 'Alex Brush Local', 'Alex Brush', cursive;
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.wedding-tagline {
    margin: 12px 0 0;

    color: rgba(255, 253, 249, 0.67);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.4px;
}

/* =========================================================
   Date and Venue Information
   ========================================================= */

.wedding-information {
    display: flex;
    flex-direction: column;
    gap: 17px;

    max-width: 340px;
    margin: 39px auto 0;
    padding-top: 27px;

    border-top: 1px solid rgba(240, 217, 164, 0.19);
    text-align: left;
}

.wedding-information-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.information-icon {
    width: 41px;
    height: 41px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(240, 217, 164, 0.27);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.055);
    color: var(--login-gold-light);
    font-size: 17px;
}

.information-icon i {
    font-style: normal;
}

.wedding-information-item > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.information-label {
    color: rgba(240, 217, 164, 0.78);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.6px;
}

.information-value {
    color: #FFFDF9;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* =========================================================
   Branding Panel Footer
   ========================================================= */

.wedding-panel-footer {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 35px;
    padding-top: 20px;

    border-top: 1px solid rgba(240, 217, 164, 0.14);

    color: rgba(255, 253, 249, 0.54);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-align: center;
}

.footer-heart {
    color: var(--login-gold-light);
    font-size: 10px;
}

/* =========================================================
   Login Panel
   ========================================================= */

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding: 65px 58px 28px;

    background: #FFFEFC;
}

.login-form-wrapper {
    width: 100%;
    max-width: 365px;
    margin: auto;
}

/* Hidden on desktop */

.login-mobile-brand {
    display: none;
}

/* =========================================================
   Login Heading
   ========================================================= */

.login-heading {
    margin-bottom: 32px;
}

.login-eyebrow {
    display: block;
    margin-bottom: 13px;

    color: #A17A35;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.7px;
    line-height: 1.7;
}

.login-heading h2 {
    margin: 0;

    color: var(--login-text);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 3.5vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.1;
}

.login-heading h2 span {
    color: #762C3B;
    font-style: italic;
}

.login-heading-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 116px;
    margin: 18px 0 12px;
    color: #B88635;
}

.login-heading-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D9A441);
}

.login-heading-divider span:last-child {
    background: linear-gradient(90deg, #D9A441, transparent);
}

.login-heading-divider i {
    font-size: 12px;
}

.login-heading p {
    margin: 0;

    color: var(--login-muted);
    font-size: 13px;
    line-height: 1.8;
}
/* =========================================================
   Authentication Alerts
   ========================================================= */

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 22px;
    padding: 13px 15px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 12px;
    line-height: 1.7;
}

.login-alert i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 15px;
}

.login-alert.alert-danger {
    border-color: #F0D5D5;
    background: #FFF5F4;
    color: #8B3434;
}

.login-alert.alert-success {
    border-color: #D7EBDD;
    background: #F2FAF4;
    color: #286B45;
}

/* =========================================================
   Form Fields
   ========================================================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.login-field {
    min-width: 0;
}

.login-field .form-label {
    display: block;
    margin-bottom: 10px;

    color: #493B3B;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 16px;

    z-index: 2;
    transform: translateY(-50%);

    color: #9B8B88;
    font-size: 17px;
    font-style: normal;

    pointer-events: none;
}

.login-input-wrapper .form-control {
    width: 100%;
    height: 53px;
    padding: 0 15px 0 46px;

    border: 1px solid var(--login-border);
    border-radius: 12px;

    background: #FDFBF8;
    color: var(--login-text);

    font-family: 'Inter', sans-serif;
    font-size: 12px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.login-input-wrapper .form-control::placeholder {
    color: #B2A6A2;
    opacity: 1;
}

.login-input-wrapper .form-control:hover {
    border-color: #D9C7B9;
}


.login-input-wrapper {
    position: relative;
}

/* Keep the gold focus animation confined to the input field */
.login-input-wrapper .form-control {
    position: relative;
    border: 1px solid var(--login-border);
    transition:
        border-color 350ms ease,
        background-color 350ms ease,
        box-shadow 350ms ease;
}

.login-input-wrapper .form-control:focus {
    border-color: var(--login-gold);
    background: #FFFFFF;

    box-shadow:
        0 0 0 1px rgba(217, 164, 65, 0.22),
        0 0 0 5px rgba(217, 164, 65, 0.09),
        0 5px 18px rgba(217, 164, 65, 0.08);

    outline: none;
}

/* The input's icon warms up when its field receives focus */
.login-input-wrapper:has(.form-control:focus) > i {
    color: var(--login-gold);
    transform: translateY(-50%) scale(1.1);
    transition:
        color 350ms ease,
        transform 350ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .login-input-wrapper .form-control,
    .login-input-wrapper > i {
        transition: none !important;
    }
}


/* =========================================================
   Wedding Invitation Sign-In
   ========================================================= */



/* =========================================================
   WedCiores — Living Wedding Emblem
   ========================================================= */

.btn-login.login-emblem-button {
    --emblem-size: 92px;

    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;

    width: var(--emblem-size);
    height: var(--emblem-size);
    min-height: var(--emblem-size);
    margin: 30px auto 12px;
    padding: 0;

    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--login-gold-light);
    cursor: pointer;

    box-shadow: none;
    transform: translateZ(0);

    transition:
        transform 450ms cubic-bezier(.2, .8, .2, 1),
        filter 450ms ease;
}

/* The deep burgundy seal */
.login-emblem-monogram {
    position: absolute;
    z-index: 3;
    inset: 10px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(240, 217, 164, .9);
    border-radius: 50%;

    background:
        radial-gradient(circle at 32% 25%,
            #8A3A4C 0%,
            #762C3B 42%,
            #57202D 100%);

    color: #F7E5B7;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -1px;

    box-shadow:
        inset 0 0 0 4px rgba(240, 217, 164, .08),
        inset 0 0 18px rgba(30, 5, 12, .24),
        0 5px 18px rgba(87, 32, 45, .2);

    transition:
        transform 650ms cubic-bezier(.2, .8, .2, 1),
        border-color 450ms ease,
        box-shadow 450ms ease;
}

/* The initials themselves */
.login-emblem-monogram > span {
    display: block;
    text-shadow: 0 0 16px rgba(240, 217, 164, .12);
}

/* Gold rings surrounding the seal */
.login-emblem-ring {
    position: absolute;
    border: 1px solid rgba(184, 134, 53, .7);
    border-radius: 50%;
    pointer-events: none;
}

.login-emblem-ring-outer {
    inset: 0;
    box-shadow: 0 0 0 4px rgba(217, 164, 65, .045);
}

.login-emblem-ring-inner {
    inset: 5px;
    border-color: rgba(240, 217, 164, .42);
}

/* A soft aura, visible around the seal */
.login-emblem-aura {
    position: absolute;
    z-index: 0;
    inset: -13px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(217, 164, 65, .25) 0%,
        rgba(217, 164, 65, .10) 43%,
        transparent 72%
    );

    opacity: .38;
    transform: scale(.92);
    pointer-events: none;

    transition:
        opacity 500ms ease,
        transform 650ms ease;
}

/* Moving gold reflection around the monogram */
.login-emblem-shimmer {
    position: absolute;
    z-index: 4;
    inset: -2px;
    border-radius: 50%;
    pointer-events: none;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 245deg,
        rgba(240, 217, 164, .08) 270deg,
        rgba(255, 244, 207, .95) 290deg,
        rgba(217, 164, 65, .48) 305deg,
        transparent 330deg,
        transparent 360deg
    );

    -webkit-mask: radial-gradient(
        farthest-side,
        transparent calc(100% - 2px),
        #000 calc(100% - 1px)
    );
    mask: radial-gradient(
        farthest-side,
        transparent calc(100% - 2px),
        #000 calc(100% - 1px)
    );

    opacity: 0;
    transform: rotate(0deg);
}

/* Hover: the seal catches the light */
.btn-login.login-emblem-button:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-3px) scale(1.035);
    filter: drop-shadow(0 8px 16px rgba(87, 32, 45, .16));
}

.btn-login.login-emblem-button:hover .login-emblem-shimmer {
    opacity: 1;
    animation: emblemShimmer 2.2s linear infinite;
}

.btn-login.login-emblem-button:hover .login-emblem-monogram {
    border-color: #FFF0C8;
    box-shadow:
        inset 0 0 0 4px rgba(240, 217, 164, .13),
        inset 0 0 22px rgba(30, 5, 12, .2),
        0 0 22px rgba(217, 164, 65, .2);
}

.btn-login.login-emblem-button:hover .login-emblem-aura {
    opacity: .9;
    transform: scale(1.08);
}

.btn-login.login-emblem-button:hover .login-emblem-ring-outer {
    border-color: rgba(217, 164, 65, .95);
}

@keyframes emblemShimmer {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Welcome message: hidden until the click animation */
.login-emblem-welcome {
    position: absolute;
    z-index: 6;
top: 50%;
    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    width: min(290px, 78vw);
    text-align: center;
    pointer-events: none;

    opacity: 0;
    transform: translate(-50%, 12px) scale(.96);
}


/* Wedding invitation hint — visible on hover */
.login-emblem-hint {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    width: max-content;
    max-width: 240px;
    color: #9C7534;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.35px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -4px);
    pointer-events: none;
    transition:
        opacity 350ms ease,
        transform 350ms ease;
    white-space: nowrap;
}

.btn-login.login-emblem-button:hover .login-emblem-hint,
.btn-login.login-emblem-button:focus-visible .login-emblem-hint {
    opacity: 1;
    transform: translate(-50%, 0);
}

.btn-login.login-emblem-button:hover .login-emblem-ring-inner {
    border-color: rgba(255, 235, 185, 0.95);
    box-shadow: 0 0 9px rgba(217, 164, 65, 0.22);
}

.btn-login.login-emblem-button:hover .login-emblem-aura {
    opacity: 0.75;
    transform: scale(1.12);
}


.login-emblem-welcome-eyebrow {
    color: #A17A35;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
}

.login-emblem-welcome-title {
    color: var(--login-text);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    line-height: 1.4;
}

.login-emblem-couple {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;

    color: var(--login-burgundy);
    font-family: 'Alex Brush Local', 'Alex Brush', cursive;
    font-size: 30px;
    line-height: 1.2;
}

.login-emblem-ampersand {
    color: #B88635;
}

/* Keyboard focus */
.btn-login.login-emblem-button:focus-visible {
    outline: 2px solid #B88635;
    outline-offset: 9px;
}


/* =========================================================
   Wedding Emblem — Login Entrance Animation
   ========================================================= */

.btn-login.login-emblem-button.is-entering {
    z-index: 20;
    cursor: wait;
    pointer-events: none;
    animation: weddingEmblemExpand 2.2s cubic-bezier(.22, .75, .25, 1) forwards;
}

.btn-login.login-emblem-button.is-entering .login-emblem-monogram {
    animation: weddingMonogramFade 0.65s ease forwards;
}

.btn-login.login-emblem-button.is-entering .login-emblem-ring-outer {
    animation: weddingGoldSpiral 1.5s cubic-bezier(.2, .75, .2, 1) forwards;
}

.btn-login.login-emblem-button.is-entering .login-emblem-ring-inner {
    animation: weddingGoldSpiral 1.2s cubic-bezier(.2, .75, .2, 1) .12s forwards;
}

.btn-login.login-emblem-button.is-entering .login-emblem-aura {
    opacity: 1;
    animation: weddingAuraBloom 1.6s ease forwards;
}

.btn-login.login-emblem-button.is-entering .login-emblem-shimmer {
    opacity: 1;
    animation: emblemShimmer 1.1s linear infinite;
}

.btn-login.login-emblem-button.is-entering .login-emblem-welcome {
    animation: weddingWelcomeReveal .8s cubic-bezier(.2, .8, .2, 1) .85s forwards;
}

@keyframes weddingEmblemExpand {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(217, 164, 65, 0));
    }
    45% {
        transform: scale(1.16);
        filter: drop-shadow(0 0 22px rgba(217, 164, 65, .45));
    }
    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 14px rgba(217, 164, 65, .2));
    }
}

@keyframes weddingMonogramFade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
    45% {
        opacity: 1;
        transform: scale(.88) rotate(-12deg);
    }
    100% {
        opacity: 0;
        transform: scale(.25) rotate(45deg);
    }
}

@keyframes weddingGoldSpiral {
    0% {
        opacity: .8;
        transform: scale(1) rotate(0deg);
        border-color: rgba(240, 217, 164, .8);
        box-shadow: 0 0 0 rgba(217, 164, 65, 0);
    }
    65% {
        opacity: 1;
        border-color: #FFF0C8;
        box-shadow: 0 0 22px rgba(217, 164, 65, .45);
    }
    100% {
        opacity: 0;
        transform: scale(2.35) rotate(200deg);
        border-color: #D9A441;
        box-shadow: 0 0 32px rgba(217, 164, 65, .2);
    }
}

@keyframes weddingAuraBloom {
    0% {
        transform: scale(.9);
        opacity: .35;
    }
    55% {
        transform: scale(1.9);
        opacity: .95;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}


@keyframes weddingWelcomeReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -42%) scale(.94);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}


@media (prefers-reduced-motion: reduce) {
    .btn-login.login-emblem-button.is-entering,
    .btn-login.login-emblem-button.is-entering * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .btn-login.login-emblem-button,
    .login-emblem-monogram,
    .login-emblem-aura {
        transition: none !important;
    }

    .btn-login.login-emblem-button:hover .login-emblem-shimmer {
        animation: none !important;
    }
}

/* =========================================================
   Security Note
   ========================================================= */

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 26px;

    color: #978B87;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

.login-security-note i {
    color: var(--login-green);
    font-size: 14px;
    font-style: normal;
}

/* =========================================================
   Application Footer
   ========================================================= */

.login-footer {
    width: 100%;
    margin-top: 48px;
    padding-top: 20px;

    border-top: 1px solid #F0EAE4;

    text-align: center;
}

.login-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;

    color: var(--login-muted);
    font-size: 10px;
    line-height: 1.8;
}

.login-footer-meta strong {
    color: #685455;
    font-weight: 600;
}

.login-footer-separator {
    color: #C6B8AD;
}

.login-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    margin-top: 8px;

    color: #B0A4A0;
    font-size: 9px;
    letter-spacing: 0.2px;
}

/* =========================================================
   Responsive Layout — Tablets
   ========================================================= */

@media (max-width: 1000px) {

    body.login-page {
        padding: 25px;
    }

    .login-layout {
        max-width: 800px;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .wedding-panel {
        padding: 45px 30px 25px;
    }

    .login-panel {
        padding: 48px 35px 25px;
    }

    .brand-title {
        font-size: 3.5rem;
    }

    .couple {
        font-size: 2.45rem;
    }

    .wedding-information {
        margin-top: 30px;
    }

}

/* =========================================================
   Responsive Layout — Mobile
   ========================================================= */

@media (max-width: 700px) {

    body.login-page {
        min-height: 100vh;
        padding: 18px 13px;
        align-items: flex-start;
        background-attachment: scroll;
    }

    .login-decoration {
        width: 240px;
        height: 240px;
    }

    .login-layout {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 440px;
        min-height: auto;
        margin: auto;

        border-radius: 22px;
    }

    .wedding-panel {
        padding: 31px 23px 20px;
    }

    .wedding-panel-inner {
        max-width: 100%;
    }

    .emblem-ornament {
        margin-bottom: 9px;
        font-size: 25px;
    }

    .logo-circle {
        width: 74px;
        height: 74px;
        font-size: 25px;
    }

    .emblem-caption {
        margin-top: 17px;
        font-size: 8px;
        letter-spacing: 1.8px;
    }

    .wedding-brand {
        margin-top: 26px;
    }

    .brand-eyebrow {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .brand-title {
        font-size: 3.4rem;
    }

    .brand-divider {
        width: 155px;
        margin-top: 13px;
    }

    .wedding-details {
        margin-top: 22px;
    }

    .wedding-name {
        padding: 7px 15px;
        font-size: 1.15rem;
    }

    .wedding-name.devanagari {
        font-size: 1.1rem;
    }

    .couple {
        margin-top: 15px;
        font-size: 2.35rem;
    }

    .wedding-tagline {
        margin-top: 7px;
        font-size: 11px;
    }

    .wedding-information {
        gap: 13px;
        margin-top: 25px;
        padding-top: 20px;
    }

    .information-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .information-label {
        font-size: 8px;
    }

    .information-value {
        font-size: 11px;
    }

    .wedding-panel-footer {
        margin-top: 25px;
        padding-top: 15px;
        gap: 7px;
        font-size: 7px;
        letter-spacing: 1px;
    }

    .login-panel {
        padding: 34px 27px 23px;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .login-heading {
        margin-bottom: 25px;
    }

    .login-eyebrow {
        font-size: 8px;
        letter-spacing: 1.35px;
    }

    .login-heading h2 {
        font-size: 2rem;
    }

    .login-heading p {
        font-size: 12px;
    }

    .login-form {
        gap: 20px;
    }

    .login-input-wrapper .form-control {
        height: 51px;
    }

    .login-footer {
        margin-top: 34px;
        padding-top: 17px;
    }

}

/* =========================================================
   Extra Small Screens
   ========================================================= */

@media (max-width: 360px) {

    body.login-page {
        padding: 10px;
    }

    .wedding-panel {
        padding-right: 17px;
        padding-left: 17px;
    }

    .login-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .brand-title {
        font-size: 3rem;
    }

    .couple {
        font-size: 2rem;
    }

    .wedding-panel-footer {
        flex-wrap: wrap;
        line-height: 1.8;
    }

    .login-footer-meta {
        font-size: 9px;
    }

}

/* =========================================================
   Accessibility — Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}



/* =========================================================
   WedCiores — Royal Reveal & Opening Invitation
   ========================================================= */

.btn-login {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transform: translateZ(0);
}

/* Keep the existing button content above the effects */
.login-button-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    transition:
        opacity 220ms ease,
        transform 450ms cubic-bezier(.2, .75, .25, 1);
}

/* Gold shimmer travelling across the invitation */
.login-button-light {
    position: absolute;
    z-index: 3;
    inset: -60% auto -60% -45%;
    width: 28%;
    pointer-events: none;
    opacity: 0;
    transform: skewX(-22deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 239, 190, 0.08) 20%,
        rgba(255, 229, 155, 0.72) 50%,
        rgba(255, 239, 190, 0.12) 80%,
        transparent
    );
}

.btn-login:hover .login-button-light,
.btn-login:focus-visible .login-button-light {
    animation: royalGoldSweep 1.15s ease-in-out;
}

@keyframes royalGoldSweep {
    0% {
        left: -35%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    75% {
        opacity: 0.85;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

/* A fine gold trace around the border */
.btn-login {
    background-size: 100% 100%;
}

.btn-login::selection {
    background: transparent;
}

.btn-login:hover {
    box-shadow:
        inset 0 0 0 3px #762C3B,
        inset 0 0 0 4px #E5C77F,
        0 7px 0 #431923,
        0 13px 28px rgba(87, 32, 45, 0.25),
        0 0 22px rgba(217, 164, 65, 0.15);
}

/* Opening panels — hidden during the normal state */
.login-button-door {
    position: absolute;
    z-index: 2;
    top: 5px;
    bottom: 5px;
    width: 50%;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(
            135deg,
            #F0D9A4 0%,
            #D9A441 45%,
            #FFF0C8 50%,
            #B88635 100%
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 248, 220, 0.85),
        0 0 18px rgba(240, 217, 164, 0.35);
}

.login-button-door-left {
    left: 5px;
    transform: translateX(0);
    border-radius: 2px 0 0 2px;
    transform-origin: left center;
}

.login-button-door-right {
    right: 5px;
    transform: translateX(0);
    border-radius: 0 2px 2px 0;
    transform-origin: right center;
}

/* Reduced-motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-login:hover .login-button-light,
    .btn-login:focus-visible .login-button-light {
        animation: none;
    }

    .login-button-content {
        transition: none;
    }
}
