/* Premium auth — makina.az */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

.auth-page {
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-orange: #ea580c;
    --auth-orange-2: #f7971c;
    --auth-soft: #fff7ed;
    font-family: 'Manrope', system-ui, sans-serif;
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 28px 16px 48px;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(247, 151, 28, 0.18), transparent 55%),
        radial-gradient(900px 420px at 100% 0%, rgba(15, 23, 42, 0.08), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    pointer-events: none;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.12),
        0 2px 0 rgba(255, 255, 255, 0.8) inset;
    animation: authIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authIn {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-aside {
    position: relative;
    padding: 40px 36px;
    color: #fff;
    background:
        linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(234, 88, 12, 0.78)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(145deg, #0f172a, #1e293b 45%, #9a3412);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 520px;
}

.auth-aside__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-aside__mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-aside__brand strong {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.auth-aside__brand span {
    display: block;
    font-size: 0.78rem;
    opacity: 0.75;
    font-weight: 500;
}

.auth-aside__copy h1 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin: 0 0 12px;
    max-width: 14ch;
}

.auth-aside__copy p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    opacity: 0.84;
    max-width: 32ch;
}

.auth-aside__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-aside__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.auth-aside__chip:hover {
    background: rgba(255, 255, 255, 0.18);
}

.auth-guide {
    margin-top: 18px;
    padding: 14px 14px 12px;
    border: 1px dashed #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.auth-guide__label {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: var(--auth-muted);
    font-weight: 600;
    line-height: 1.4;
}

.auth-guide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-guide__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-guide__chip:hover {
    border-color: #fdba74;
    background: #fff7ed;
}

.auth-dialog {
    border: 0;
    padding: 0;
    margin: auto;
    background: transparent;
    max-width: min(400px, calc(100vw - 28px));
    width: 100%;
}

.auth-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
}

.auth-dialog__card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 22px 22px 18px;
    border: 1px solid #e8edf3;
    box-shadow:
        0 22px 48px rgba(15, 23, 42, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.auth-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-dialog__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.auth-dialog__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 40px;
    margin-bottom: 14px;
}

.auth-dialog__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #ea580c;
    font-size: 1rem;
    margin: 0;
}

.auth-dialog__head h3,
.auth-dialog h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.25;
}

.auth-dialog__body {
    display: grid;
    gap: 8px;
}

.auth-dialog__body p,
.auth-dialog p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
    font-weight: 500;
}

.auth-dialog__body p {
    position: relative;
    padding-left: 14px;
}

.auth-dialog__body p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f7971c;
}

.auth-dialog__foot,
.auth-dialog__note {
    margin-top: 14px !important;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.auth-panel {
    padding: 40px 36px 32px;
    display: flex;
    flex-direction: column;
}

.auth-panel__top {
    margin-bottom: 22px;
}

.auth-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-orange);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-panel__title {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--auth-ink);
}

.auth-panel__sub {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.auth-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.auth-alert--info {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.auth-field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__control > i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.auth-field__control input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--auth-ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-field__control input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(234, 88, 12, 0.55);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.auth-field__hint {
    font-size: 0.75rem;
    color: var(--auth-muted);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-orange);
}

.auth-link {
    color: var(--auth-orange);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.88rem;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    margin-top: 4px;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--auth-orange-2), var(--auth-orange));
    color: #fff;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.34);
    filter: brightness(1.03);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-line);
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-secure {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .auth-aside {
        min-height: 0;
        padding: 24px 22px;
        gap: 16px;
    }

    .auth-aside__copy h1 {
        max-width: none;
        font-size: 1.35rem;
    }

    .auth-aside__copy p {
        display: none;
    }

    .auth-aside__meta {
        display: flex;
    }

    .auth-panel {
        padding: 28px 22px 24px;
    }

    .auth-grid-2 {
        grid-template-columns: 1fr;
    }
}
