/* DARCHIN ADMIN — standalone login and first-stage authenticated landing */
.da-body, .da-body * { box-sizing: border-box; }
.da-body { margin: 0; min-height: 100vh; background: #f5efe8; color: #241c17; direction: rtl; font-family: inherit; overflow-x: hidden; position: relative; }
.da-body button, .da-body input { font: inherit; }
.da-body a { text-decoration: none; }
.da-body button { cursor: pointer; }
.da-aura { position: fixed; width: 530px; height: 530px; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(13px); }
.da-aura--one { right: -300px; top: 10%; background: radial-gradient(circle, rgba(161,106,66,.18), transparent 69%); }
.da-aura--two { left: -300px; bottom: -180px; background: radial-gradient(circle, rgba(10,83,61,.13), transparent 70%); }
.da-top { max-width: 1400px; margin: auto; padding: 29px clamp(22px,5vw,65px) 20px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.da-brand { display: flex; align-items: center; gap: 10px; color: #062f26; }
.da-brand__mark { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px; background: #092e25; font-size: 26px; font-family: Georgia,serif; font-weight: 800; color: #e5bd8d; box-shadow: 0 5px 18px rgba(1,30,20,.12); direction: ltr; }
.da-brand__mark span { color: #bf7f53; }
.da-brand__copy { display: flex; flex-direction: column; gap: 2px; }
.da-brand__copy strong { font-size: 21px; font-weight: 900; line-height: 1.1; }
.da-brand__copy small { font-size: 10px; color: #927461; }
.da-top__aside { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #7e776e; }
.da-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #248364; box-shadow: 0 0 0 4px #24836418; }
.da-top__slash { color: #cbbfb2; }
.da-top__en { font-size: 10px; letter-spacing: .2em; font-family: Arial,sans-serif; }
.da-frame { max-width: 1248px; width: calc(100% - 68px); min-height: 660px; margin: 31px auto 26px; display: grid; grid-template-columns: 1fr 1.03fr; direction: ltr; border-radius: 28px; overflow: hidden; position: relative; z-index: 1; background: #fffaf5; box-shadow: 0 30px 95px rgba(39,38,31,.115), 0 2px 7px rgba(30,34,28,.04); }
.da-login { direction: rtl; position: relative; min-width: 0; display: flex; flex-direction: column; padding: 40px clamp(28px,4.1vw,67px) 23px; overflow: hidden; background: #fffaf5; }
.da-login:before { content: ''; border: 1px solid rgba(189,137,92,.2); border-radius: 50%; position: absolute; width: 240px; height: 240px; right: -170px; top: -120px; pointer-events: none; }
.da-login__top { display: flex; align-items: center; gap: 10px; direction: ltr; justify-content: flex-start; color: #ac8060; font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.da-line { height: 1px; width: 29px; background: #bb825f; }
.da-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: .19em; font-family: Arial, sans-serif; color: #ad8466; }
.da-login__leaf { position: absolute; top: 80px; right: 9%; color: #c99e67; font-size: 33px; opacity: .75; }
.da-login__content { position: relative; z-index: 1; width: 100%; max-width: 405px; margin: auto; padding: 30px 0; }
.da-kicker { font-size: 13px; font-weight: 800; color: #936247; margin-bottom: 10px; }
.da-login h1 { font-size: clamp(29px,3.4vw,47px); line-height: 1.45; font-weight: 900; letter-spacing: -.6px; margin: 0; color: #251a15; }
.da-login h1 em { font-style: normal; color: #0d5e46; }
.da-intro { font-size: 13px; line-height: 2.25; color: #8b7e72; margin: 17px 0 24px; max-width: 370px; }
.da-form { display: flex; flex-direction: column; gap: 17px; }
.da-field { display: flex; flex-direction: column; gap: 8px; }
.da-field label { font-size: 12px; font-weight: 800; color: #4f4034; }
.da-input-wrap { position: relative; }
.da-input-wrap input { width: 100%; height: 56px; border: 1px solid #e9ded1; border-radius: 12px; padding: 0 46px 0 45px; outline: none; background: #fdf9f5; color: #2a2926; font-family: Arial, sans-serif; font-size: 14px; text-align: left; transition: border-color .2s,box-shadow .2s,background .2s; }
.da-input-wrap input::placeholder { color: #b5a69a; font-size: 12px; }
.da-input-wrap input:hover { background: #fff; }
.da-input-wrap input:focus-visible { background: #fff; border-color: #9b795f; box-shadow: 0 0 0 4px rgba(161,113,70,.1); }
.da-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #ab886e; }
.da-icon svg, .da-visibility svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.da-visibility { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 29px; height: 29px; padding: 5px; display: grid; place-items: center; border: none; background: transparent; color: #a79485; border-radius: 5px; }
.da-visibility:focus-visible { outline: 2px solid #a97d5c; }
.da-form__helper { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #96877a; font-size: 10px; line-height: 1.8; flex-wrap: wrap; }
.da-mini-star { color: #be8d5e; }
.da-primary { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; padding: 7px 8px 7px 19px; border: none; border-radius: 11px; background: #0a5841; color: #fff9ef; font-size: 14px; font-weight: 900; box-shadow: 0 12px 22px rgba(12,72,48,.17); transition: transform .2s, background .2s, box-shadow .2s; }
.da-primary:hover:not(:disabled) { background: #087050; transform: translateY(-1px); box-shadow: 0 14px 27px rgba(12,72,48,.2); }
.da-primary:focus-visible { outline: 3px solid #bd875a; outline-offset: 3px; }
.da-primary:disabled { opacity: .5; cursor: not-allowed; }
.da-primary__arrow { display: grid; place-items: center; width: 43px; height: 42px; border-radius: 9px; background: #f0cfaa; color: #264437; font-size: 20px; }
.da-alert, .da-error { border-radius: 9px; padding: 11px 13px; font-size: 12px; line-height: 1.9; }
.da-alert { background: #fff1d9; color: #80592f; border: 1px solid #ead4a7; }
.da-error { background: #fff0ee; color: #a02d2b; border: 1px solid #efc3bc; }
.da-footnote { border-top: 1px solid #eee2d6; padding-top: 18px; margin-top: 23px; color: #98887b; font-size: 11px; line-height: 1.95; }
.da-footnote span { color: #b88c63; font-size: 18px; vertical-align: middle; }
.da-login__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: Arial,sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #b6a49a; direction: ltr; }
.da-story { direction: rtl; position: relative; isolation: isolate; overflow: hidden; color: #faf1e3; padding: 46px clamp(27px,4vw,60px) 26px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 16% 14%, #26614b, transparent 48%), radial-gradient(circle at 95% 85%, rgba(153,99,57,.42),transparent 50%), linear-gradient(136deg,#0b3b2f 4%,#05241d 75%); }
.da-story:before { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(135deg, transparent 0, transparent 54px, rgba(217,171,120,.025) 55px, transparent 56px); }
.da-story__ornament { position: absolute; border-radius: 50%; border: 1px solid rgba(223,172,110,.12); pointer-events: none; }
.da-story__ornament--one { width: 510px; height: 510px; right: -190px; top: 60px; }
.da-story__ornament--two { width: 600px; height: 600px; left: -250px; bottom: -360px; }
.da-story__watermark { position: absolute; font: 900 510px/1 Georgia,serif; color: rgba(225,179,115,.045); top: 24px; left: -35px; pointer-events: none; }
.da-story__upper { display: flex; flex-direction: row; justify-content: space-between; align-items: center; color: #d6b388; font: 700 10px Arial,sans-serif; letter-spacing: .15em; direction: ltr; }
.da-story__upper span:first-child { font-size: 27px; line-height: 1; }
.da-story__center { margin: auto 0; position: relative; z-index: 1; max-width: 500px; }
.da-story__symbol { width: 118px; height: 118px; position: relative; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(218,173,115,.33); margin-bottom: 37px; background: rgba(255,255,255,.035); box-shadow: 0 0 0 16px rgba(219,182,128,.035), 0 0 0 32px rgba(219,182,128,.018); }
.da-story__symbol span { font: bold 79px/1 Georgia,serif; color: #d3a06c; }
.da-story__symbol i { position: absolute; right: -12px; bottom: 3px; font: normal 24px Georgia,serif; color: #f0d5a9; }
.da-story__label { font-size: 13px; color: #d8b284; margin-bottom: 9px; }
.da-story h2 { margin: 0; font-weight: 900; font-size: clamp(36px,4.1vw,61px); line-height: 1.55; letter-spacing: -1.1px; }
.da-story p { color: #e4d6c4; line-height: 2.2; font-size: 14px; max-width: 430px; margin: 21px 0 25px; }
.da-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.da-chips span { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(224,195,154,.23); border-radius: 8px; font-size: 11px; color: #ecd4b6; background: rgba(255,255,255,.025); }
.da-story__footer { display: flex; justify-content: space-between; gap: 12px; direction: ltr; padding-top: 20px; border-top: 1px solid rgba(226,188,141,.16); font: 700 9px Arial,sans-serif; letter-spacing: .15em; color: #c6a47d; }
.da-pagefoot { max-width: 1250px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 36px 26px; color: #a28b7b; font-size: 10px; position: relative; z-index: 1; }
.da-logged { width: min(680px,calc(100% - 35px)); margin: 75px auto 50px; padding: 56px; text-align: center; border-radius: 24px; background: #fffaf5; box-shadow: 0 20px 70px #092d2618; }
.da-logged__icon { margin: 0 auto 22px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #0b6a4f; color: #fff; font-size: 30px; }
.da-logged h1 { font-size: clamp(26px,3.1vw,39px); line-height: 1.6; }
.da-logged p { color: #7e7065; font-size: 14px; line-height: 2.4; }
.da-logged p strong { color: #0a563e; }
.da-upcoming { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 25px 0 30px; }
.da-upcoming span { border: 1px solid #e4d5c7; border-radius: 7px; padding: 8px 13px; font-size: 11px; color: #695444; }
.da-primary--logout { max-width: 300px; margin: 0 auto; }
@media (max-width: 980px) { .da-frame { grid-template-columns: 1fr .9fr; width: calc(100% - 34px); min-height: 620px; } .da-login { padding: 34px 28px 21px; } .da-story { padding: 35px 28px 25px; } .da-story h2 { font-size: 42px; } }
@media (max-width: 730px) { .da-top { padding: 18px 20px 12px; } .da-top__en,.da-top__slash { display: none; } .da-frame { display: flex; flex-direction: column-reverse; width: calc(100% - 28px); margin: 14px auto 22px; border-radius: 19px; } .da-story { min-height: 248px; padding: 24px 26px 18px; } .da-story__upper { font-size: 8px; } .da-story__symbol { width: 52px; height: 52px; margin: 8px 0 14px; box-shadow: 0 0 0 10px rgba(219,182,128,.035); } .da-story__symbol span { font-size: 37px; } .da-story__symbol i { font-size: 15px; } .da-story__center { margin: 0; } .da-story__label { font-size: 10px; } .da-story h2 { font-size: 26px; line-height: 1.3; } .da-story p { display: none; } .da-chips { margin-top: 12px; } .da-chips span { font-size: 9px; padding: 4px 8px; } .da-story__footer { display: none; } .da-login { padding: 24px 25px; } .da-login__leaf { right: 10%; top: 24px; font-size: 22px; } .da-login__content { padding: 24px 0; } .da-login h1 { font-size: 32px; } .da-intro { margin: 12px 0 22px; } .da-login__bottom { font-size: 8px; } .da-pagefoot { padding: 0 23px 28px; } .da-logged { margin-top: 35px; padding: 30px 23px; } }
@media (max-width: 420px) { .da-brand__mark { width: 41px; height: 41px; } .da-brand__copy strong { font-size: 18px; } .da-top__aside { font-size: 10px; } .da-story { min-height: 231px; } .da-frame { width: calc(100% - 20px); } .da-login { padding: 21px 18px; } .da-login h1 { font-size: 29px; } .da-story h2 { font-size: 25px; } .da-form__helper { font-size: 9px; } .da-pagefoot span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .da-primary,.da-input-wrap input { transition: none; } }
/* One-time setup uses the same visual language without duplicating stylesheets. */
.da-setup { width: min(560px,calc(100% - 30px)); padding: clamp(25px,4vw,50px); border-radius: 22px; background: #fffaf5; box-shadow: 0 17px 60px #092f241b; margin: 40px auto 70px; }
.da-setup h1 { font-size: clamp(25px,3.2vw,38px); line-height: 1.6; margin: 16px 0 8px; }
.da-setup > p { font-size: 13px; line-height: 2; color: #7c6d60; margin-bottom: 27px; }
.da-setup code { direction: ltr; color: #0d5642; background: #eaf1e6; padding: 2px 6px; border-radius: 4px; }
.da-setup__link { text-decoration: none; max-width: 320px; }
.da-setup .da-input-wrap input { padding-inline: 15px; }

/* ============================================================
   DARCHIN — OFFICIAL BRONZE / FOREST BRAND REFRESH
   Brand assets: darchinLogo.png (mark)
                 darchin-logo.png (full wordmark)
   Visual-only overrides: auth, CSRF, sessions, SQL are untouched.
   ============================================================ */
.da-body {
    color: #2a2018;
    background:
        radial-gradient(ellipse at 7% 42%, rgba(196, 111, 58, .11), transparent 43%),
        radial-gradient(ellipse at 94% 80%, rgba(12, 48, 31, .12), transparent 46%),
        #f2e8db;
}
.da-aura--one { background: radial-gradient(circle, rgba(185, 96, 42, .26), transparent 71%); }
.da-aura--two { background: radial-gradient(circle, rgba(7, 36, 25, .20), transparent 73%); }

/* True Darchin wordmark at the top, not a generic D glyph. */
.da-top { padding-top: 19px; padding-bottom: 13px; }
.da-brand { gap: 14px; color: #153125; }
.da-brand__mark {
    flex: 0 0 128px;
    width: 128px;
    height: 74px;
    border: 1px solid rgba(208, 143, 83, .42);
    border-radius: 16px;
    font-size: 0;
    color: transparent;
    background-color: #10281e;
    background-image: url('darchin-logo.png'), radial-gradient(circle at 35% 24%, #224432, #08110c 85%);
    background-position: center, center;
    background-size: 91px auto, cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 rgba(244, 178, 104, .12), 0 12px 30px rgba(16, 24, 14, .19);
}
.da-brand__mark span { display: none; }
.da-brand__copy strong { font-size: 19px; color: #153629; }
.da-brand__copy small { color: #9b6745; font-size: 11px; }
.da-top__aside { color: #796450; }
.da-status-dot { background: #ad723d; box-shadow: 0 0 0 4px rgba(184, 116, 56, .14); }
.da-top__slash { color: #c5a88b; }

.da-frame {
    margin-top: 14px;
    border: 1px solid rgba(158, 103, 60, .22);
    background: #fffaf2;
    box-shadow: 0 32px 88px rgba(29, 26, 17, .18), 0 4px 15px rgba(105, 64, 29, .085);
}
.da-login {
    background:
        radial-gradient(circle at 1% 1%, rgba(226, 174, 110, .08), transparent 40%),
        #fff9f1;
}
.da-login:before { border-color: rgba(172, 95, 42, .24); }
.da-login__top, .da-eyebrow { color: #9a5d37; }
.da-line { background: linear-gradient(90deg, #9e512a, #e4b278); }
.da-login__leaf, .da-mini-star { color: #c78346; }
.da-kicker { color: #a5633c; }
.da-login h1 { color: #251c15; }
.da-login h1 em { color: #8e4c27; }
.da-intro { color: #756757; }
.da-field label { color: #4c3526; }
.da-input-wrap input {
    background: #fdf8f1;
    border-color: #e2cbb4;
    color: #2f271c;
}
.da-input-wrap input::placeholder { color: #a99580; }
.da-input-wrap input:hover { background: #fffdf9; border-color: #cdaa83; }
.da-input-wrap input:focus-visible {
    background: #fffdf9;
    border-color: #bb7842;
    box-shadow: 0 0 0 4px rgba(185, 112, 55, .15);
}
.da-icon, .da-visibility { color: #a87854; }
.da-visibility:hover { background: rgba(170, 97, 47, .09); color: #713f23; }
.da-visibility:focus-visible { outline-color: #b97543; }
.da-form__helper { color: #816a55; }
.da-primary {
    color: #fff8ee;
    border: 1px solid rgba(232, 177, 110, .46);
    background: linear-gradient(115deg, #12392a 2%, #0a241a 85%);
    box-shadow: 0 13px 28px rgba(6, 28, 19, .20), inset 0 1px 0 rgba(243, 196, 131, .15);
}
.da-primary:hover:not(:disabled) {
    background: linear-gradient(115deg, #20513b, #103123);
    box-shadow: 0 16px 34px rgba(6, 28, 19, .27);
}
.da-primary:focus-visible { outline-color: #c0834f; }
.da-primary__arrow {
    background: linear-gradient(135deg, #ffe0ad 0%, #d99559 49%, #a85c31 100%);
    color: #1a261b;
    box-shadow: inset 0 1px 0 rgba(255, 247, 205, .55);
}
.da-alert { background: #fbedd4; color: #81542c; border-color: #e6c99b; }
.da-footnote { border-top-color: #e9d4be; color: #8b7661; }
.da-footnote span { color: #bd7943; }
.da-login__bottom { color: #b29273; }

/* Deep botanical charcoal, richly metallic bronze glow. */
.da-story {
    color: #fff4e6;
    background:
        radial-gradient(ellipse at 17% 5%, rgba(160, 96, 49, .30), transparent 48%),
        radial-gradient(ellipse at 104% 90%, rgba(190, 103, 51, .25), transparent 42%),
        radial-gradient(ellipse at 61% 52%, rgba(20, 64, 37, .32), transparent 63%),
        linear-gradient(138deg, #0f271b 0%, #0b1711 44%, #050c09 100%);
}
.da-story:before {
    background: repeating-linear-gradient(137deg, transparent 0, transparent 54px, rgba(247, 174, 101, .025) 55px, transparent 56px);
}
.da-story__ornament { border-color: rgba(224, 155, 86, .24); }
.da-story__watermark {
    left: -66px;
    top: 18%;
    width: 560px;
    height: 560px;
    font-size: 0;
    color: transparent;
    opacity: .08;
    background: url('darchinLogo.png') center/contain no-repeat;
}
.da-story__upper { color: #d9a770; }
.da-story__symbol {
    width: 154px;
    height: 154px;
    margin-bottom: 22px;
    border: 1px solid rgba(222, 151, 75, .40);
    background:
        url('darchinLogo.png') center/92% no-repeat,
        radial-gradient(circle, rgba(120, 70, 32, .21), rgba(5, 26, 15, .17) 70%);
    box-shadow: 0 0 0 14px rgba(217, 154, 81, .065), 0 0 0 29px rgba(216, 145, 66, .027), 0 14px 38px rgba(0, 0, 0, .19);
}
.da-story__symbol span { font-size: 0; color: transparent; }
.da-story__symbol i { color: #f0bb7b; right: -10px; bottom: 5px; }
.da-story__label { color: #dca16a; font-weight: 700; }
.da-story h2 {
    color: #fff2e3;
    text-shadow: 0 5px 28px rgba(0, 0, 0, .25);
}
.da-story p { color: #d5c6b0; }
.da-chips span {
    color: #e9c99f;
    background: rgba(218, 148, 79, .07);
    border-color: rgba(227, 158, 87, .29);
}
.da-story__footer { color: #bd9267; border-top-color: rgba(222, 157, 86, .28); }
.da-pagefoot { color: #957c65; }
.da-logged, .da-setup {
    background: #fff9f1;
    border: 1px solid rgba(190, 133, 77, .23);
    box-shadow: 0 22px 68px rgba(21, 38, 27, .13);
}
.da-logged__icon { background: #123929; color: #e9b27f; }
.da-logged p strong { color: #98562d; }
.da-upcoming span { border-color: #e0c3a6; color: #674631; }
.da-setup code { color: #87491e; background: #f2e2cf; }

@media (max-width: 730px) {
    .da-top { padding-top: 12px; padding-bottom: 9px; }
    .da-brand__mark { flex-basis: 95px; width: 95px; height: 62px; background-size: 75px auto, cover; border-radius: 13px; }
    .da-brand__copy strong { font-size: 17px; }
    .da-brand__copy small { font-size: 9px; }
    .da-frame { margin-top: 9px; }
    .da-story { min-height: 280px; padding-top: 18px; }
    .da-story__watermark { width: 260px; height: 260px; top: 22%; left: -63px; }
    .da-story__symbol { width: 66px; height: 66px; margin: 12px 0; box-shadow: 0 0 0 7px rgba(217, 154, 81, .055); }
    .da-story__symbol span { font-size: 0; }
    .da-story__symbol i { font-size: 12px; }
    .da-story h2 { font-size: 28px; }
}
@media (max-width: 420px) {
    .da-brand { gap: 8px; }
    .da-brand__mark { flex-basis: 81px; width: 81px; height: 55px; background-size: 66px auto, cover; }
    .da-brand__copy strong { font-size: 16px; }
    .da-top__aside { font-size: 9px; }
    .da-login h1 { font-size: 29px; }
    .da-story { min-height: 265px; }
    .da-story h2 { font-size: 26px; }
}
