﻿:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --primary: #2d7be4;
    --muted: #6b7280;
    --accent: #eef6ff;
    --radius: 10px;
    --shadow: 0 6px 18px rgba(15,23,42,0.08);
    --input-border: #d1d5db;
    --focus: 0 0 0 3px rgba(45,123,228,0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Base */
* {
    box-sizing: border-box
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--bg), #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #111827;
    font-size: 16px;
    line-height: 1.4;
    padding: 24px;
    overflow-x: hidden;
}

/* LOGIN LAYOUT ----------------------------------------------------------- */
body.login {
    min-height: 100vh;
    margin: 0;
    padding: 32px;
    background: radial-gradient(circle at 15% 20%, #fff, #eef2ff 45%, #dbe4ff 80%);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body.login::before,
body.login::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(99,102,241,0.12);
    filter: blur(0.5px);
    z-index: 0;
}

body.login::before { top: -120px; right: -80px; }
body.login::after { bottom: -160px; left: -60px; background: rgba(14,165,233,0.15); }

.login-shell {
    width: min(1080px, 100%);
    max-width: 100%;
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    border-radius: 28px;
    box-shadow: 0 35px 80px rgba(15,23,42,0.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
}

.login-shell::before {
    content: "";
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: calc(45% - 60px);
    width: 140px;
    background: rgba(15,23,42,0.25);
    transform: skewX(-12deg);
    z-index: 2;
}

.login-shell > * { position: relative; z-index: 3; }

.login-panel {
    background: var(--card);
    padding: 42px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-card__brand {
    text-align: center;
}

.brand-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin: 0 auto 14px;
    background: linear-gradient(145deg, #2563eb, #60a5fa);
    box-shadow: 0 15px 35px rgba(37,99,235,0.45);
}

.brand-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.brand-sub {
    margin: 6px 0 0;
    color: var(--muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.login .form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

body.login .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: #f8fafc;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.login .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus);
}

body.login .password-row .input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding-right: 6px;
    background: #fff;
}

body.login .password-row .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
}

body.login .btn {
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

body.login .btn-primary {
    background: linear-gradient(130deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 20px 35px rgba(79,70,229,0.35);
}

body.login .btn-primary:hover {
    transform: translateY(-1px);
}

body.login .form-helpers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

body.login .checkbox input { margin-right: 6px; }

body.login .link-forgot {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

body.login .link-forgot:hover { text-decoration: underline; }

body.login .form-message.error {
    color: #dc2626;
    font-size: 13px;
}

body.login .login-card__foot {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

body.login .btn-block { width: 100%; }

body.login .btn-toggle-pass {
    border: none;
    background: transparent;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.login .icon-eye {
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23677391"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/%3E%3C/svg%3E') no-repeat center/contain;
}

.login-hero {
    background: #0f172a url('../img/login-quote-bg.svg') center/cover no-repeat;
    color: #e2e8f0;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(30,58,138,0.65));
}

.login-hero > * { position: relative; z-index: 1; }

.login-hero__badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-hero h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.login-hero p { margin: 0; line-height: 1.6; color: #cbd5f5; }

.quote-card {
    background: rgba(15,23,42,0.55);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(148,163,184,0.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quote-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
}

.quote-card__title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.quote-card__client {
    color: #a5b4fc;
}

.quote-card__date {
    font-size: 12px;
    color: #94a3b8;
}

.quote-card__lines {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.quote-card__lines li {
    display: flex;
    justify-content: space-between;
    color: #e2e8f0;
}

.quote-card__lines li span:last-child {
    font-weight: 600;
}

.quote-card__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(148,163,184,0.3);
    font-size: 15px;
}

.quote-card__total strong {
    font-size: 18px;
    color: #facc15;
}

.login-hero__location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(148,163,184,0.25);
}

.location-label {
    font-size: 12px;
    letter-spacing: .08em;
    color: #a5b4fc;
}

.login-hero__location p {
    margin: 4px 0 0;
    color: #dde3ff;
}

.location-pin {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    position: relative;
}

.location-pin::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #facc15;
}

@media (max-width: 900px) {
    body.login {
        padding: 0;
        display: block;
        min-height: auto;
    }
    .login-shell { grid-template-columns: 1fr; border-radius: 24px; }
    .login-shell::before { display: none; }
}

@media (max-width: 520px) {
    .login-shell {
        width: 100%;
        border-radius: 0;
    }

    .login-panel, .login-hero { padding: 28px; }
}
