/* ============================================================
   MaterialBloom — auth.css
   ============================================================ */

/* ------------------------------------------------------------
   Page — white background, card centred
   ------------------------------------------------------------ */
html, body {
    height: 100%;
    width: 100%;
}

body {
    background-color: #f1f1f1;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* ------------------------------------------------------------
   Auth Card — the two-column split lives inside here
   ------------------------------------------------------------ */
.auth-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    border-radius: 8px;
    overflow: hidden;
}

/* ------------------------------------------------------------
   Card Left — dark botanical panel
   ------------------------------------------------------------ */
.card-left {
    flex: 1;
    background-color: var(--ink);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    overflow: hidden;
    min-width: 0;
}

.grain-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.botanical-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    opacity: 0.10;
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 2;
}

.left-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--moss-light);
    border: 1px solid rgba(180, 210, 150, 0.3);
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 24px;
}

.left-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 1.15;
    color: #F0EBE0;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.left-headline em {
    font-style: italic;
    color: var(--moss-light);
}

.left-desc {
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    line-height: 1.75;
    max-width: 280px;
    margin-bottom: 32px;
}

.left-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.left-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
    font-weight: 300;
}

.feature-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--moss-light);
    opacity: 0.6;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   Card Right — form panel
   ------------------------------------------------------------ */
.card-right {
    width: 400px;
    flex-shrink: 0;
    background-color: var(--ivory);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 44px 36px;
    position: relative;
	border: 1px solid #ccc9c4;
}

/* ------------------------------------------------------------
   Logo
   ------------------------------------------------------------ */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--moss);
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--moss);
}

/* ------------------------------------------------------------
   Form Views
   ------------------------------------------------------------ */
.form-container {
    width: 100%;
}

.form-view {
    display: none;
}

.form-view.active {
    display: block;
    animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
}

.step-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ivory-deep);
    transition: background 0.3s;
}

.step-dot.on {
    background: var(--moss);
}

.form-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.form-sub {
    font-size: 13px;
    color: var(--ink-light);
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.6;
}

.form-sub a,
a.link-switch,
button.link-switch {
    color: var(--moss);
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
    border-bottom: 1px solid rgba(45, 80, 22, 0.3);
    transition: border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.form-sub a:hover,
a.link-switch:hover,
button.link-switch:hover {
    border-bottom-color: var(--moss);
}

/* ------------------------------------------------------------
   Fields
   ------------------------------------------------------------ */
.field-group {
    margin-bottom: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 42px;
    background: white;
    border: var(--border-mid);
    border-radius: 3px;
    padding: 0 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 300;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

input::placeholder {
    color: rgba(60, 70, 50, 0.3);
}

input:focus {
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.08);
}

.forgot-link {
    text-align: right;
    margin-top: 5px;
}

.forgot-link a {
    font-size: 11.5px;
    color: var(--ink-light);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.forgot-link a:hover {
    color: var(--moss);
    border-bottom-color: rgba(45, 80, 22, 0.3);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    margin-top: 4px;
}

input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--moss);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-label {
    font-size: 12px;
    color: var(--ink-light);
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1.55;
}

.check-label a {
    color: var(--moss);
    text-decoration: none;
    border-bottom: 1px solid rgba(45, 80, 22, 0.25);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-primary {
    width: 100%;
    height: 44px;
    background: var(--moss);
    border: none;
    border-radius: 3px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover  { background: var(--moss-mid); }
.btn-primary:active { transform: scale(0.99); }

.btn-ghost {
    width: 100%;
    height: 44px;
    background: transparent;
    border: var(--border-mid);
    border-radius: 3px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--ink-mid);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-ghost:hover {
    background: var(--ivory-dark);
    border-color: rgba(60, 70, 50, 0.4);
}

/* ------------------------------------------------------------
   Alerts & Feedback
   ------------------------------------------------------------ */
.alert-box {
    border-radius: 3px;
    padding: 10px 14px;
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid rgba(163, 45, 45, 0.2);
    color: #7F1D1D;
}

.success-box {
    background: var(--moss-pale);
    border: 1px solid rgba(45, 80, 22, 0.2);
    border-radius: 3px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.success-text {
    font-size: 12.5px;
    color: var(--moss);
    font-weight: 400;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.page-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    font-size: 10.5px;
    color: var(--ink-light);
    opacity: 0.5;
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* ------------------------------------------------------------
   Responsive — on mobile the card goes full width, left panel hides
   ------------------------------------------------------------ */
@media (max-width: 680px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    .auth-card {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .card-left {
        display: none;
    }

    .card-right {
        width: 100%;
        flex: 1;
        padding: 48px 28px 40px;
    }
}
