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

:root {
    --ink: #18252b;
    --muted: #68757a;
    --paper: #f4f1eb;
    --white: #fffdf9;
    --line: rgba(24, 37, 43, .14);
    --yellow: #f2c94c;
    --navy: #18343a;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; }
a { color: inherit; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(circle at 85% 12%, #f6d788 0, transparent 24%), linear-gradient(135deg, #f4f1eb, #e6ece8); }
.auth-shell { width: min(100%, 520px); padding: 46px; background: rgba(255, 253, 249, .82); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 24px 70px rgba(24, 52, 58, .13); }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 34px; color: var(--navy); background: var(--yellow); font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -.08em; }
.eyebrow { margin: 0 0 14px; color: #9a681d; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3 { margin: 0; font-family: 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.auth-shell h1 { max-width: 410px; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: .98; }
.intro { max-width: 390px; margin: 22px 0 34px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.auth-form label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; padding: 16px 17px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; outline: none; }
.auth-form input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(24, 52, 58, .12); }
.auth-form button { width: 100%; margin-top: 12px; padding: 16px 18px; border: 0; background: var(--navy); color: white; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; }
.auth-form button span { float: right; font-size: 19px; line-height: 14px; }
.fine-print { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.message { padding: 13px 15px; margin: 0 0 20px; font-size: 13px; line-height: 1.45; }
.message.error { border-left: 3px solid #c75c45; background: #fbe9e3; color: #863f30; }
.message.success { border-left: 3px solid #438d70; background: #e5f2ec; color: #28634c; }
.portal-page { min-height: 100vh; background: radial-gradient(circle at 90% 0, #dce9df 0, transparent 30%), var(--paper); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 27px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.wordmark { font: 700 17px 'Space Grotesk', sans-serif; text-decoration: none; }
.wordmark span { color: #af761e; }
.user-menu { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 12px; }
.user-menu a { color: var(--ink); font-weight: 700; text-decoration: none; }
.portal-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: clamp(58px, 9vw, 116px) 0 90px; }
.welcome { max-width: 720px; }
.welcome h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .92; }
.welcome p:not(.eyebrow) { max-width: 510px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.apps-section { margin-top: clamp(70px, 11vw, 138px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { font-size: 29px; }
.app-count { color: var(--muted); font-size: 12px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-card { position: relative; display: flex; min-height: 235px; flex-direction: column; padding: 25px; overflow: hidden; border: 1px solid var(--line); background: rgba(255, 253, 249, .7); text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.app-card::before { position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); content: ''; }
.app-card:hover { transform: translateY(-5px); background: var(--white); box-shadow: 0 16px 28px rgba(24, 37, 43, .1); }
.app-index { align-self: end; color: var(--accent); font-size: 26px; }
.app-card h3 { margin-top: 18px; font-size: 23px; }
.app-card p { max-width: 230px; margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.launch-label { margin-top: auto; color: var(--ink); font-size: 12px; font-weight: 700; }
.footer { padding: 0 20px 32px; color: var(--muted); text-align: center; font-size: 11px; letter-spacing: .05em; }
.footer span { padding: 0 6px; color: #af761e; }
@media (max-width: 760px) {
    .auth-shell { padding: 34px 25px; }
    .topbar { align-items: flex-start; gap: 18px; }
    .user-menu { align-items: flex-end; flex-direction: column; gap: 7px; text-align: right; }
    .app-grid { grid-template-columns: 1fr; }
    .app-card { min-height: 195px; }
}
