/* Doberman Comments — Login Form (minimal) */

.dc-login-wrap {
    --dcl-accent:   #4d52e2;
    --dcl-accent-h: #3c41cc;
    --dcl-radius:   10px;
    --dcl-trans:    0.15s ease;
    font-family: 'Montserrat', sans-serif;
    max-width: 480px;
    box-sizing: border-box;
}
.dc-login-wrap * { box-sizing: border-box; font-family: inherit; }

/* ── Steps ── */
.dcl-step { display: none; }
.dcl-step.is-active { display: block; }

/* ── One-line row ── */
.dcl-row {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.dcl-row .dcl-input {
    flex: 1 1 0;
    min-width: 0;
    border-radius: var(--dcl-radius) 0 0 var(--dcl-radius);
    border-right: none;
}
.dcl-row .dcl-input:focus { position: relative; z-index: 1; }
.dcl-row .dcl-btn--primary {
    border-radius: 0 var(--dcl-radius) var(--dcl-radius) 0;
    flex-shrink: 0;
}

/* ── Input ── */
.dcl-input {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #d2d7e0;
    border-radius: var(--dcl-radius);
    font-size: .9rem;
    color: #000;
    background: #fff;
    outline: none;
    width: 100%;
    transition: border-color var(--dcl-trans), box-shadow var(--dcl-trans);
}
.dcl-input::placeholder { color: #b0b8c9; }
.dcl-input:focus {
    border-color: var(--dcl-accent);
    box-shadow: 0 0 0 3px rgba(77,82,226,0.12);
}
.dcl-input--code {
    letter-spacing: .14em;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── Button ── */
.dcl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: var(--dcl-radius);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background var(--dcl-trans), border-color var(--dcl-trans), opacity var(--dcl-trans);
    white-space: nowrap;
}
.dcl-btn:disabled { opacity: .5; cursor: not-allowed; }

.dcl-btn--primary {
    background: var(--dcl-accent);
    color: #fff;
    border-color: var(--dcl-accent);
}
.dcl-btn--primary:hover:not(:disabled) { background: var(--dcl-accent-h); border-color: var(--dcl-accent-h); }

.dcl-btn--link {
    background: none;
    border: none;
    color: #9090a8;
    font-size: .8rem;
    font-weight: 600;
    height: auto;
    padding: 0;
}
.dcl-btn--link:hover:not(:disabled) { color: var(--dcl-accent); }

.dcl-btn--ghost {
    background: transparent;
    border: 1.5px solid #d2d7e0;
    color: #5a6078;
    font-size: .85rem;
}
.dcl-btn--ghost:hover:not(:disabled) {
    border-color: var(--dcl-accent);
    color: var(--dcl-accent);
}

/* ── Terms checkbox ── */
.dcl-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
}
.dcl-agree__checkbox {
    margin: 2px 0 0;
    width: 15px; height: 15px;
    flex-shrink: 0;
    accent-color: var(--dcl-accent);
    cursor: pointer;
}
.dcl-agree__text {
    font-size: .75rem;
    line-height: 1.5;
    color: #9090a8;
}
.dcl-agree__text a {
    color: #9090a8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dcl-agree__text a:hover { color: var(--dcl-accent); }

html[data-scheme="dark"] .dc-login-wrap .dcl-agree__text     { color: #6a6a80; }
html[data-scheme="dark"] .dc-login-wrap .dcl-agree__text a   { color: #8080a0; }

/* ── Message ── */
.dcl-msg {
    font-size: .8rem;
    min-height: 1em;
    color: #9090a8;
    margin-top: 7px;
}
.dcl-msg.is-error { color: #d63355; }
.dcl-msg.is-ok    { color: #1a9d5c; }

/* ── Links ── */
.dcl-links {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ── Legal note ── */
.dcl-legal {
    margin-top: 10px;
    font-size: .75rem;
    color: #b0b8c9;
    line-height: 1.5;
}
.dcl-legal a {
    color: #9090a8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dcl-legal a:hover { color: var(--dcl-accent); }

/* ── Logged-in card ── */
.dcl-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dcl-user-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.dcl-user-card__name {
    flex: 1;
    font-size: .9rem;
    font-weight: 600;
    color: #000;
}

/* ── Dark ── */
html[data-scheme="dark"] .dc-login-wrap .dcl-input {
    background: #2e2e2e; border-color: #3a3a3a; color: #fff;
}
html[data-scheme="dark"] .dc-login-wrap .dcl-input::placeholder { color: #6a6a80; }
html[data-scheme="dark"] .dc-login-wrap .dcl-input:focus { border-color: var(--dcl-accent); }
html[data-scheme="dark"] .dc-login-wrap .dcl-msg           { color: #6a6a80; }
html[data-scheme="dark"] .dc-login-wrap .dcl-msg.is-error  { color: #d63355; }
html[data-scheme="dark"] .dc-login-wrap .dcl-msg.is-ok     { color: #1a9d5c; }
html[data-scheme="dark"] .dc-login-wrap .dcl-btn--link     { color: #6a6a80; }
html[data-scheme="dark"] .dc-login-wrap .dcl-btn--link:hover { color: var(--dcl-accent); }
html[data-scheme="dark"] .dc-login-wrap .dcl-btn--ghost { border-color: #3a3a3a; color: #9090a8; }
html[data-scheme="dark"] .dc-login-wrap .dcl-legal { color: #6a6a80; }
html[data-scheme="dark"] .dc-login-wrap .dcl-legal a { color: #8080a0; }
html[data-scheme="dark"] .dc-login-wrap .dcl-user-card__name { color: #fff; }

/* ── Mobile ── */
@media (max-width: 480px) {
    .dcl-row { flex-direction: column; gap: 8px; }
    .dcl-row .dcl-input { border-radius: var(--dcl-radius); border-right: 1.5px solid #d2d7e0; }
    .dcl-row .dcl-btn--primary { border-radius: var(--dcl-radius); width: 100%; }
}
