﻿/* =========================================================
   INDEXENT — LOGIN
   Matched to the homepage: light surface, violet washes,
   white card, one gradient accent, 12px geometry.
   Markup unchanged.
========================================================= */

:root {
    --purple: #6D28F5;
    --purple2: #C13FD6;
    --purple-deep: #4C1D95;

    --bg: #FBFAFE;
    --card: #ffffff;

    --text: #1A1030;
    --muted: #5F5878;
    --muted2: #8B85A1;

    --input: #F4F2FA;
    --border: rgba(28, 12, 60, .10);

    --success: #22C55E;

    --font-body: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 620px at 92% -10%, rgba(154, 96, 255, .16), transparent 64%),
        radial-gradient(760px 540px at -8% 106%, rgba(193, 63, 214, .09), transparent 68%),
        var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ---------- CARD ---------- */
.container {
    width: 400px;
    background: #F8F7FC;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    padding: 0 22px;
    box-shadow:
        0 1px 2px rgba(28, 12, 60, .04),
        0 26px 60px rgba(28, 12, 60, .13);
}

/* header strip, exactly like the widget: white bar, mark left, rule under */
.container::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 66px;
    background: #fff;
    border-bottom: 1px solid rgba(28, 12, 60, .08);
}

/* the brand mark, drawn in CSS — same tile as the widget */
.container::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 13px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-image:
        radial-gradient(circle 2.3px at 10.5px 21px, #fff 100%, transparent 0),
        radial-gradient(circle 2.3px at 20px 21px, #fff 100%, transparent 0),
        radial-gradient(circle 2.3px at 29.5px 21px, #fff 100%, transparent 0),
        linear-gradient(140deg, var(--purple), #9333EA 55%, var(--purple2));
    background-repeat: no-repeat;
    box-shadow: 0 5px 14px rgba(109, 40, 245, .32);
    z-index: 2;
}

.logo-box,
.logo-boxORG {
    display: none;
}

/* ---------- HEADINGS ---------- */
h1 {
    position: relative;
    z-index: 3;
    height: 66px;
    display: flex;
    align-items: center;
    padding-left: 52px;
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

.description {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 6px;
}

/* status line — same green pulse as the widget's online dot */
.description::after {
    content: '\25CF  Live — scoring inbound leads';
    display: block;
    margin-top: 12px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--success);
}



/* ---------- FIELDS ---------- */
.form-group {
    padding: 0;
    margin-top: 16px;
}

.form-group:first-of-type {
    margin-top: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}

.input-field {
    width: 100% !important;
    height: 46px !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 0 16px !important;
    font-size: 14.5px !important;
    font-family: var(--font-body) !important;
    color: var(--text) !important;
    outline: none !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.input-field:focus {
    background: #ffffff !important;
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 4px rgba(109, 40, 245, .10);
}

.input-field::placeholder {
    color: var(--muted2);
    opacity: 1;
}

.textarea-field {
    height: 100px !important;
    resize: vertical;
}

/* ---------- PRIMARY BUTTON ---------- */
.btn-login {
    width: 100%;
    margin: 22px 0 0;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(100deg, #6732f5, #8648ff);
    color: #fff;
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(103, 50, 245, .30);
    transition: filter .18s ease, transform .12s ease;
}

.btn-login:hover {
    filter: brightness(1.08);
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-login:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.btn-login[disabled] {
    filter: grayscale(.25) brightness(.95);
    cursor: default;
}

/* ---------- ERROR ---------- */
.error-msg {
    display: block;
    min-height: 18px;
    margin-top: 12px;
    text-align: center;
    color: #DC2626;
    font-size: 12.5px;
    font-weight: 500;
}

/* ---------- DIVIDER ---------- */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0 14px;
    color: var(--muted2);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider::before { margin-right: 12px; }
.divider::after  { margin-left: 12px; }

/* ---------- SECONDARY ACTIONS ---------- */
.admin-actions {
    padding: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.btn-action {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(109, 40, 245, .22);
    background: #fff;
    text-decoration: none;
    color: #3B2A63;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn-action:hover {
    background: rgba(109, 40, 245, .06);
    border-color: rgba(109, 40, 245, .38);
    color: var(--purple-deep);
}

.btn-action:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}


.admin-actions-void {
    padding: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}


.btn-action-long {
    width: 100% !important;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(109, 40, 245, .22);
    background: #fff;
    text-decoration: none;
    color: #3B2A63;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn-action-long:hover {
    background: rgba(109, 40, 245, .06);
    border-color: rgba(109, 40, 245, .38);
    color: var(--purple-deep);
}

.btn-action-long:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

/* ---------- FOOTER ---------- */
footer {
    padding: 20px 0 22px;
    text-align: center;
    font-size: 11px;
    line-height: 1.75;
    color: var(--muted2);
}

footer strong {
    color: var(--muted);
    font-weight: 600;
}

/* ---------- MOBILE ---------- */
@media (max-width: 480px) {
    body { padding: 24px 14px; }

    .container {
        width: 100%;
        padding: 0 18px;
        border-radius: 18px;
    }
}

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