/* ==========================================================================
   DIANDRA WEDDING ORGANIZER — OFFICIAL DESIGN SYSTEM (AUTH GATEWAY)
   File: assets/css/index.css
   ========================================================================== */
:root {
    --bg-canvas-from: #F9F6F0;
    --bg-canvas-to: #F9F6F0;
    --bg-canvas: #F9F6F0;
    --surface-pure: #FFFFFF;
    --surface-card: #FFFFFF;
    --surface-linen: #F9F6F0;

    /* Card Border & Highlights */
    --border: #E7DEC8;
    --border-subtle: #E7DEC8;
    --border-card: #E7DEC8;
    --border-strong: #C5A059;

    /* Brand Accent Colors (NO RED / NO MAROON: Warm Heritage Gold Primary) */
    --brand-gold: #C5A059;         /* Warm Heritage Gold */
    --brand-gold-hover: #B38F46;
    --primary: #C5A059;            /* Primary CTA */
    --primary-hover: #B38F46;
    --primary-deep: #C5A059;

    --terracotta: #7A4032;         /* Soft Terracotta Muted */
    --terracotta-warm: #7A4032;
    --terracotta-soft: #F5EBE6;
    --terracotta-border: rgba(122, 64, 50, 0.22);
    --danger: #7A4032;

    /* High-Contrast Typography Tokens (Wajib Hitam Pekat) */
    --text-main: #1C1917;         /* Teks Utama: Judul, Nama, Nominal, dsb */
    --text-muted: #1C1917;        /* Subteks: Tanggal, Week, Detail */
    --text-secondary: #2B2523;

    /* Status Colors (Badges & Tags Only) */
    --success: #1D6638;
    --success-soft: #EBF5EC;
    --warning: #8C6819;
    --warning-soft: #FBF2DE;

    --radius-card: 16px;
    --radius-inner: 12px;
    --radius-input: 10px;
    --radius-pill: 999px;
    --radius-btn: 12px;

    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-clay: none;
    --shadow-clay-hover: none;
    --shadow-btn-tactile: none;

    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-brand: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100dvh;
    font-family: var(--font-ui);
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 16%, rgba(197, 160, 89, 0.20) 0%, rgba(250, 246, 239, 0) 50%),
        radial-gradient(circle at 88% 84%, rgba(184, 78, 58, 0.14) 0%, rgba(250, 246, 239, 0) 52%),
        linear-gradient(135deg, var(--bg-canvas-from) 0%, var(--bg-canvas-to) 100%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Main Stage */
.app-stage {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    position: relative;
    z-index: 10;
}

/* Global Flat Minimal Reset for Cards & Buttons */
.login-window,
.clay-badge-3d,
.diandra-logo-frame,
.floating-pill-tag,
.alert-error,
button,
.btn-primary,
.btn-toggle-pass {
    box-shadow: none !important;
    transform: none !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Standardized Card Container (bg-white rounded-2xl border border-[#E7DEC8]) */
.login-window {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 40px 34px 36px;
    background: #FFFFFF;
    border: 1px solid #E7DEC8;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transform: none;
}

/* Brand Header */
.brand-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.clay-badge-3d,
.diandra-logo-frame {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    background: #FAF7F2;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    padding: 12px;
    transform: none;
}

.clay-badge-img,
.diandra-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-title {
    font-family: var(--font-brand);
    font-size: 1.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: #111111;
    line-height: 1.15;
}

.brand-subtitle {
    font-family: var(--font-brand);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
    text-transform: lowercase;
    color: #111111;
    margin-top: 5px;
}

/* High-Contrast Dark Charcoal Pill Tag */
.floating-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    margin-top: 14px;
    border-radius: var(--radius-pill);
    background: #2B2523;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #FAF6EF;
    text-transform: uppercase;
}

.floating-pill-tag i {
    font-size: 0.72rem;
    color: #E5C378;
}

/* Form Controls & iOS Anti-Zoom Input Rules (16px) */
input,
select,
textarea,
#login-email,
#login-password,
.clay-input {
    font-size: 16px !important;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-main);
    margin-bottom: 8px;
    padding-left: 4px;
}

.input-container-3d {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-3d {
    position: absolute;
    left: 18px;
    color: var(--primary-deep);
    font-size: 0.95rem;
    pointer-events: none;
}

.clay-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px 12px 48px;
    border-radius: var(--radius-input);
    font-family: var(--font-ui);
    font-size: 16px !important;
    font-weight: 600;
    color: var(--text-main);
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease;
}

.clay-input::placeholder {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.78;
}

.clay-input:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: none;
}

.input-container-3d:focus-within .input-icon-3d {
    color: var(--primary-deep);
}

.input-group-password .clay-input {
    padding-right: 50px;
}

.btn-toggle-pass {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    display: grid;
    place-items: center;
    box-shadow: none;
    transform: none !important;
}

.btn-toggle-pass:hover {
    background: rgba(43, 37, 35, 0.05);
    color: var(--text-main);
}

/* Standardized Primary Button (Diandra UI Specification) */
.btn-primary {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #C5A059;
    border-radius: 12px;
    background: #C5A059 !important;
    color: #FFFFFF !important;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary:hover {
    background: #B38F46 !important;
    border-color: #B38F46 !important;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Alert Error (Flat Minimal Card) */
.alert-error {
    background: var(--terracotta-soft);
    border: 1px solid var(--terracotta-border);
    color: var(--terracotta);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: none;
}

/* Loading Box */
.loading-box {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.loading-box i {
    font-size: 2.2rem;
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Toast Notification Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--surface-pure);
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--success);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toast.show {
    opacity: 1;
}

.toast i {
    color: var(--success);
    font-size: 1rem;
}

.toast.toast-error {
    border-left-color: var(--danger);
}

.toast.toast-error i {
    color: var(--danger);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-stage {
        padding: 20px 14px;
    }
    .login-window {
        padding: 34px 22px 28px;
        border-radius: 24px;
    }
    .clay-badge-3d {
        width: 82px;
        height: 82px;
        border-radius: 22px;
        margin-bottom: 12px;
    }
    .brand-title {
        font-size: 1.45rem;
    }
    .clay-input {
        font-size: 16px !important;
        min-height: 48px;
    }
    #toast-container {
        left: 14px;
        right: 14px;
        top: 14px;
    }
}
