*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif; }

.login-root { display: flex; min-height: 100vh; background: #F8FAFC; }

/* ── LEFT PANEL ── */
.login-left {
    width: 440px; flex-shrink: 0;
    background: linear-gradient(160deg, #1251C0 0%, #2B7EFF 100%);
    display: flex; flex-direction: column; padding: 40px; color: white;
    position: relative; overflow: hidden;
}
.login-left::before {
    content: ''; position: absolute; width: 420px; height: 420px;
    border-radius: 50%; background: rgba(255,255,255,.06);
    top: -120px; right: -120px;
}
.login-left::after {
    content: ''; position: absolute; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(255,255,255,.04);
    bottom: -80px; left: -80px;
}

.login-brand        { display: flex; align-items: center; gap: 0; margin-bottom: auto; position: relative; z-index: 1; }
.login-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.login-tagline      { font-size: 28px; font-weight: 700; line-height: 1.35; margin-bottom: 36px; }
.login-features     { display: flex; flex-direction: column; gap: 16px; }
.login-feature      { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(4px); }
.login-feature-icon  { font-size: 22px; flex-shrink: 0; }
.login-feature-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.login-feature-desc  { font-size: 12px; opacity: .7; }
.login-left-footer  { font-size: 12px; opacity: .45; position: relative; z-index: 1; }

/* ── RIGHT PANEL ── */
.login-right     { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.login-form-wrap { width: 100%; max-width: 420px; }

.login-form-title { font-size: 26px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.login-form-sub   { font-size: 14px; color: #6B7280; margin-bottom: 32px; }

.login-error {
    display: flex; align-items: center; gap: 8px;
    background: #FEF2F2; color: #B91C1C;
    border: 1px solid #FECACA; border-radius: 10px;
    padding: 12px 16px; font-size: 14px; margin-bottom: 20px;
}

.login-field  { margin-bottom: 20px; }
.login-label  { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.login-input  {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #E5E7EB; border-radius: 10px;
    font-size: 14px; color: #111827; background: white;
    outline: none; transition: border-color .15s;
    font-family: 'Roboto', sans-serif;
}
.login-input:focus { border-color: #2B7EFF; box-shadow: 0 0 0 3px rgba(43,126,255,.12); }

.login-row    { display: flex; justify-content: space-between; align-items: center; }
.login-forgot { font-size: 12px; color: #2B7EFF; text-decoration: none; font-weight: 500; }
.login-check  { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 14px; color: #374151; }

.login-btn {
    width: 100%; padding: 12px; background: #2B7EFF; color: white;
    border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
    cursor: pointer; box-shadow: 0 4px 14px rgba(43,126,255,.3);
    transition: background .15s; font-family: 'Roboto', sans-serif;
}
.login-btn:hover { background: #1558D6; }

/* ── TENANT PICKER ── */
.tenant-list  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.tenant-item  {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 2px solid #E5E7EB; border-radius: 10px;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.tenant-item:hover, .tenant-item.selected { border-color: #2B7EFF; background: #EFF6FF; }
.tenant-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #2B7EFF; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.tenant-name  { font-size: 14px; font-weight: 500; color: #111827; }
input[type=radio] { display: none; }

/* ── LANG SWITCHER ── */
.lang-switcher {
    position: absolute; top: 20px; right: 20px;
    display: flex; gap: 4px; z-index: 10;
}
.lang-btn {
    padding: 4px 10px; border-radius: 6px; border: 1.5px solid #E5E7EB;
    font-size: 12px; font-weight: 600; cursor: pointer;
    background: white; color: #6B7280;
    transition: all .15s; font-family: 'Roboto', sans-serif;
}
.lang-btn.active { background: #2B7EFF; color: white; border-color: #2B7EFF; }

.mobile-logo { display: none; }

@media (max-width: 768px) {
    .login-left  { display: none; }
    .mobile-logo { display: block; margin-bottom: 24px; }
}
