*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    color: #4b5563;
}

.login-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Brand panel ── */
.brand-panel {
    width: 42%;
    background: linear-gradient(155deg, #111827 0%, #1f2937 45%, #4b5563 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 52px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: -140px; right: -90px;
    width: 380px; height: 380px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}

.brand-panel::after {
    content: '';
    position: absolute;
    bottom: -110px; left: -70px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}

.brand-logo {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.brand-logo img {
    height: 64px;
    width: auto;
    display: block;
}

.brand-body {
    position: relative;
    z-index: 1;
}

.brand-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 28px;
}

.brand-body h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.brand-body > p {
    color: rgba(255,255,255,.82);
    font-size: .97rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.steps-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.88);
    font-size: .9rem;
    font-weight: 500;
}

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
}

.brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.55);
    font-size: .78rem;
}

.brand-footer a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
}

.brand-footer a:hover { color: rgba(255,255,255,.85); }

/* ── Form panel ── */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #fff;
}

.form-box {
    width: 100%;
    max-width: 400px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 36px;
    transition: color .15s;
}

.back-link:hover { color: #4b5563; }

.form-heading {
    margin-bottom: 32px;
}

.form-heading h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.form-heading p {
    color: #6b7280;
    font-size: .93rem;
    line-height: 1.6;
}

/* Alerts */
.alert-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    margin-bottom: 24px;
    color: #b91c1c;
    font-size: .88rem;
    line-height: 1.5;
}

.alert-error i { margin-top: 2px; flex-shrink: 0; }

/* Fields */
.field {
    margin-bottom: 24px;
}

.field label {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
    letter-spacing: .01em;
}

.input-wrap {
    position: relative;
}

.input-wrap .ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    color: #4b5563;
    background: #f9fafb;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    appearance: none;
}

.input-wrap input:focus {
    border-color: #4b5563;
    box-shadow: 0 0 0 3px rgba(75,85,99,.13);
    background: #fff;
}

.input-wrap input::placeholder { color: #c2c8d0; }

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 4px 16px rgba(31,41,55,.38);
    transition: opacity .18s, box-shadow .18s, transform .1s;
}

.btn-submit:hover {
    opacity: .93;
    box-shadow: 0 6px 22px rgba(31,41,55,.44);
}

.btn-submit:active { transform: scale(.99); }

/* Responsive */
@media (max-width: 900px) {
    .brand-panel { display: none; }
    .form-panel { padding: 48px 24px; }
}
