@font-face {
    font-family: "Old Press Original";
    font-display: swap;
    src: url("https://lamaisondeliora.ch/wp-content/uploads/et-fonts/Old-Press-Original.otf") format("opentype");
}

:root {
    --leaf: #6f8a36;
    --leaf-dark: #455a24;
    --leaf-soft: rgba(111, 138, 54, 0.16);
    --earth: #b56f3d;
    --earth-soft: rgba(181, 111, 61, 0.14);
    --ink: #20302a;
    --muted: rgba(32, 48, 42, 0.74);
    --paper: rgba(255, 251, 244, 0.93);
    --line: rgba(255, 255, 255, 0.24);
    --shadow: 0 28px 80px rgba(20, 26, 14, 0.28);
    --danger: #a93a38;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Open Sans", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(13, 21, 8, 0.62), rgba(13, 21, 8, 0.28)),
        radial-gradient(circle at top left, rgba(181, 111, 61, 0.34), transparent 34%),
        url("assets/jdj-garden.jpeg") center center / cover no-repeat fixed;
}

h1,
h2,
p {
    margin: 0;
}

.login-page,
.dashboard-page,
.payment-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

.login-page::before,
.dashboard-page::before,
.payment-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 32%);
    pointer-events: none;
    animation: skyShift 14s ease-in-out infinite alternate;
}

.shell {
    width: min(1200px, 100%);
    min-height: calc(100vh - 48px);
    position: relative;
    display: grid;
    place-items: center;
    padding: 40px 0;
    z-index: 1;
}

.form-panel {
    width: min(440px, calc(100% - 24px));
    padding: 32px 30px 28px;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    position: relative;
    animation: riseIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--earth), var(--leaf-dark));
}

.card-head {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 6px;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.brand-mark-link {
    display: inline-grid;
    place-items: center;
    width: 144px;
    height: 144px;
    background: rgba(255, 251, 244, 0.85);
    border-radius: 50%;
    border: 0;
    box-shadow: 0 18px 34px rgba(32, 48, 42, 0.12);
    animation: floatMark 6s ease-in-out infinite;
}

.brand-mark {
    width: 144px;
    height: auto;
    display: block;
    background: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    background: var(--earth-soft);
    color: var(--earth);
    border: 1px solid rgba(181, 111, 61, 0.16);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.card-head h1 {
    font-family: "Old Press Original", "Open Sans", Arial, sans-serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 0.95;
    margin-bottom: 10px;
    letter-spacing: 0;
}

.card-head p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 30ch;
    margin: 0 auto;
}

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

.auth-switch a {
    color: var(--leaf-dark);
    font-weight: 700;
    text-decoration: none;
}

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

form {
    display: grid;
    gap: 10px;
}

label {
    margin-top: 2px;
    font-weight: 700;
    font-size: 0.93rem;
}

input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d5dccf;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

input:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 4px var(--leaf-soft);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(169, 58, 56, 0.24);
    background: #fff5f4;
    color: var(--danger);
}

button,
.logout {
    min-height: 52px;
    border: 0;
    background: linear-gradient(180deg, var(--earth), #97532d);
    color: #fff;
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
    box-shadow: 0 14px 22px rgba(76, 120, 48, 0.22);
    margin-top: 6px;
}

button:hover,
.logout:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

button:active,
.logout:active {
    transform: translateY(0);
}

.floating-colibri {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 160px;
    height: auto;
    opacity: 0.96;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
    animation: drift 5.5s ease-in-out infinite;
}

.dashboard {
    width: min(640px, 100%);
    padding: 34px;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow: var(--shadow);
    text-align: center;
    animation: riseIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dashboard h1 {
    font-family: "Old Press Original", "Open Sans", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 16px 0 8px;
}

.dashboard .brand-mark {
    width: 120px;
}

.dashboard p {
    color: var(--muted);
    margin-bottom: 22px;
}

.dashboard-cards {
    display: grid;
    gap: 14px;
    margin: 20px 0 24px;
    text-align: left;
}

.dashboard-card {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(32, 47, 54, 0.08);
}

.dashboard-card h2 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.dashboard-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.dashboard-actions {
    display: grid;
    gap: 12px;
}

.dashboard-primary,
.dashboard-secondary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 800;
}

.dashboard-primary {
    background: linear-gradient(180deg, var(--earth), #97532d);
    color: #fff;
    box-shadow: 0 14px 22px rgba(76, 120, 48, 0.22);
}

.dashboard-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    border: 1px solid rgba(32, 47, 54, 0.10);
}

.checkout-shell {
    width: min(1180px, 100%);
    min-height: calc(100vh - 48px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1fr);
    align-items: center;
    gap: 28px;
    padding: 40px 0;
    z-index: 1;
}

.checkout-summary,
.checkout-panel {
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.checkout-summary {
    position: relative;
    padding: 30px;
    align-self: stretch;
    display: grid;
    align-content: start;
    gap: 24px;
    animation: riseIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.checkout-panel {
    position: relative;
    padding: 32px 30px 28px;
    animation: riseIn 780ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.checkout-summary::before,
.checkout-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--earth), var(--leaf-dark));
}

.checkout-brand {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.checkout-brand-mark {
    width: 112px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.10));
    border-radius: 50%;
    background: rgba(255, 251, 244, 0.85);
}

.checkout-brand h1 {
    font-family: "Old Press Original", "Open Sans", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.96;
}

.checkout-product {
    padding: 22px;
    background: linear-gradient(180deg, rgba(108, 168, 69, 0.12), rgba(108, 168, 69, 0.05));
    border: 1px solid rgba(108, 168, 69, 0.14);
}

.checkout-product-label {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.checkout-product-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.checkout-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
}

.checkout-points {
    display: grid;
    gap: 12px;
}

.checkout-point {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(32, 47, 54, 0.08);
    color: var(--muted);
    line-height: 1.6;
}

.offer-list {
    display: grid;
    gap: 12px;
}

.offer-card {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(32, 47, 54, 0.10);
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
}

.offer-card input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    box-shadow: none;
}

.offer-card-copy {
    display: grid;
    gap: 4px;
}

.offer-card-copy strong {
    font-size: 1rem;
}

.offer-card-copy small {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.offer-card-price {
    font-weight: 800;
    white-space: nowrap;
}

.checkout-panel-head {
    margin-bottom: 18px;
}

.checkout-panel-head h2 {
    font-family: "Old Press Original", "Open Sans", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.98;
    margin-bottom: 8px;
}

.checkout-panel-head p {
    color: var(--muted);
    line-height: 1.6;
}

.checkout-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(181, 111, 61, 0.14), rgba(111, 138, 54, 0.06));
    border: 1px solid rgba(181, 111, 61, 0.16);
}

.checkout-selected span {
    font-weight: 700;
}

.checkout-selected strong {
    font-size: 1.2rem;
}

.checkout-form {
    display: grid;
    gap: 10px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout-total {
    margin-top: 8px;
    padding: 16px 0 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(32, 47, 54, 0.10);
    font-size: 1rem;
}

.checkout-total strong {
    font-size: 1.3rem;
}

.checkout-soft-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

.payment-notice {
    margin-bottom: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(32, 47, 54, 0.1);
    color: var(--muted);
    line-height: 1.6;
}

.payment-notice-ready {
    background: rgba(108, 168, 69, 0.08);
    border-color: rgba(108, 168, 69, 0.16);
    color: var(--leaf-dark);
}

.payment-cta {
    width: 100%;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatMark {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-7px) translateX(-3px);
    }
}

@keyframes skyShift {
    from {
        opacity: 0.65;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 760px) {
    .login-page,
    .dashboard-page,
    .payment-page {
        padding: 12px;
    }

    .shell {
        min-height: calc(100vh - 24px);
        padding: 24px 0;
    }

    .brand-mark-link {
        width: 112px;
        height: 112px;
    }

    .brand-mark {
        width: 112px;
    }

    .form-panel {
        width: 100%;
        padding: 26px 20px 22px;
    }

    .floating-colibri {
        width: 112px;
        right: 12px;
        bottom: 12px;
    }

    .dashboard {
        padding: 26px 20px;
    }

    .checkout-shell {
        min-height: calc(100vh - 24px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .checkout-summary,
    .checkout-panel {
        padding: 24px 20px 22px;
    }

    .checkout-brand {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .checkout-brand-mark {
        width: 92px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .offer-card,
    .checkout-selected {
        grid-template-columns: 20px 1fr;
    }

    .offer-card-price,
    .checkout-selected strong {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
