*, *::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;
}

/* ── Layout shell ── */
.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-body h1 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    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;
}

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

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

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

/* Error alert */
.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: 20px;
}

.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 44px 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; }

.btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    padding: 4px 6px;
    line-height: 1;
    transition: color .15s;
}

.btn-eye:hover { color: #6b7280; }

/* Options row */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    margin-top: 4px;
}

.chk-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.chk-label input[type=checkbox] {
    width: 15px;
    height: 15px;
    accent-color: #1f2937;
    cursor: pointer;
}

.link-forgot {
    font-size: .85rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    transition: color .15s;
}

.link-forgot:hover { color: #111827; }

/* Sign-in button */
.btn-signin {
    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-signin:hover {
    opacity: .93;
    box-shadow: 0 6px 22px rgba(31,41,55,.44);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0;
    color: #9ca3af;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Social buttons */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 34px;
}

.social-grid form { margin: 0; }

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, background .18s;
    padding: 0;
}

.btn-social:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    background: #f9fafb;
}

.btn-social img {
    height: 22px;
    width: auto;
}

/* Register link */
.register-cta {
    text-align: center;
    font-size: .87rem;
    color: #6b7280;
}

.register-cta a {
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
}

.register-cta a:hover { text-decoration: underline; }

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