@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #172033;
    --muted: #737d90;
    --primary: #5546e8;
    --primary-dark: #4335cc;
    --line: #e5e8f0;
    --bg: #f4f6fb;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
      radial-gradient(circle at 8% 10%, rgba(109, 95, 255, .09), transparent 30%),
      radial-gradient(circle at 90% 90%, rgba(66, 184, 160, .09), transparent 28%),
      var(--bg);
    font-family: 'DM Sans', sans-serif;
}
a { color: var(--primary); text-decoration: none; font-weight: 700; }
a:hover { color: var(--primary-dark); }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px 18px; }
.auth-card {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    width: min(100%, 1000px);
    min-height: 620px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(224, 228, 240, .8);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(35, 42, 78, .12);
}
.brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 44px;
    color: white;
    background: linear-gradient(145deg, #29215f 0%, #5141d6 54%, #7567f6 100%);
}
.brand-mark {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    margin-bottom: 52px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 15px;
    background: rgba(255,255,255,.15);
    font: 800 25px 'Manrope', sans-serif;
}
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.brand-panel h1 { z-index: 1; max-width: 340px; margin: 0; font: 800 clamp(30px, 3.3vw, 42px)/1.18 'Manrope', sans-serif; letter-spacing: -1.5px; }
.brand-copy { z-index: 1; max-width: 300px; margin-top: 20px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.8; }
.decorative-orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-one { width: 310px; height: 310px; right: -155px; bottom: -90px; }
.orbit-two { width: 220px; height: 220px; right: -110px; bottom: -45px; }
.form-panel { padding: 44px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.mobile-brand { display: none; align-items: center; gap: 10px; font: 800 15px 'Manrope', sans-serif; }
.brand-mark.small { width: 34px; height: 34px; margin: 0; border-radius: 10px; background: var(--primary); color: #fff; font-size: 18px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tabs a { position: relative; padding: 0 0 14px; color: #8b93a3; font-size: 14px; }
.tabs a.active { color: var(--primary); }
.tabs a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 5px; background: var(--primary); }
.form-panel h2 { margin: 0 0 8px; font: 800 28px 'Manrope', sans-serif; letter-spacing: -.8px; }
.form-subtitle { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.6; }
form { display: flex; flex-direction: column; }
form > label:not(.check-row) { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
input:not([type="checkbox"]) {
    width: 100%; height: 48px; margin-bottom: 19px; padding: 0 14px;
    border: 1px solid #dfe3ed; border-radius: 10px; outline: none;
    background: #fbfcff; color: var(--ink); font: 13px 'DM Sans', sans-serif;
    transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(85,70,232,.11); }
input::placeholder { color: #a4aaba; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 60px; }
.toggle-password { position: absolute; top: 0; right: 8px; height: 48px; padding: 0 8px; border: 0; background: transparent; color: var(--primary); font-size: 11px; font-weight: 800; cursor: pointer; }
.password-hint { margin: -13px 0 18px; color: var(--muted); font-size: 11px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 1px 0 21px; color: #697386; font-size: 12px; line-height: 1.5; cursor: pointer; }
.check-row input { accent-color: var(--primary); margin-top: 2px; }
.primary-button {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; min-height: 49px; padding: 12px 18px; border: 0; border-radius: 10px;
    background: var(--primary); color: #fff; font: 700 13px 'DM Sans', sans-serif;
    cursor: pointer; box-shadow: 0 9px 18px rgba(85,70,232,.18); transition: transform .2s, background .2s;
}
.primary-button:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.switch-copy { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 29px 0 0; color: #969eae; font-size: 10px; }
.security-note span { color: #30b98a; font-size: 9px; }
.alert { margin: -12px 0 20px; padding: 11px 13px; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.alert.success { color: #146b4a; background: #eafaf2; border: 1px solid #c7f0dc; }
.alert.error { color: #9a2b36; background: #fff0f1; border: 1px solid #ffd4d8; }
footer { padding: 18px 0 0; color: #8e96a7; font-size: 11px; text-align: center; }
.dashboard-shell { width: min(100% - 32px, 900px); margin: 0 auto; padding: 28px 0; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dashboard-top .mobile-brand { display: flex; }
.logout-button { padding: 11px 17px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 12px; }
.dashboard-card { max-width: 650px; margin: 8vh auto 0; padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 25px 70px rgba(35,42,78,.09); }
.dashboard-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 25px; border-radius: 17px; background: #e7fbf2; color: #129969; font-size: 27px; }
.dashboard-card .eyebrow { color: var(--primary); }
.dashboard-card h1 { margin: 0 0 10px; font: 800 clamp(26px, 5vw, 38px) 'Manrope', sans-serif; letter-spacing: -1px; }
.dashboard-copy { color: var(--muted); font-size: 14px; line-height: 1.7; }
.profile-details { margin: 28px 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.profile-details div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 17px; border-bottom: 1px solid var(--line); font-size: 12px; }
.profile-details div:last-child { border-bottom: 0; }
.profile-details span { color: var(--muted); }
.profile-details strong { text-align: right; overflow-wrap: anywhere; }
.status-active { color: #129969; }
.dashboard-cta { max-width: 240px; }
@media (max-width: 760px) {
    .page-shell { justify-content: flex-start; padding: 16px 12px; }
    .auth-card { grid-template-columns: 1fr; width: min(100%, 480px); min-height: 0; border-radius: 20px; }
    .brand-panel { display: none; }
    .form-panel { padding: 27px clamp(20px, 6vw, 34px) 30px; }
    .mobile-brand { display: flex; margin-bottom: 27px; }
    .tabs { margin-bottom: 25px; }
    .form-panel h2 { font-size: 25px; }
    footer { padding-top: 14px; }
}
@media (max-width: 360px) {
    .form-panel { padding: 22px 17px; }
    .profile-details div { flex-direction: column; gap: 6px; }
    .profile-details strong { text-align: left; }
}
