/* The portal's own pages (login, settings, app picker) — everything shared
   by the whole site comes from /shared/site.css, loaded before this. */

/* --- Settings ------------------------------------------------------------ */

.settings-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.settings-stack form { max-width: 560px; }

/* --- Login --------------------------------------------------------------- */

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: 100vh;
}
.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    overflow: hidden;
    padding: 2.5rem clamp(2rem, 5vw, 5rem) 3rem;
    background: linear-gradient(160deg, #f4f0e7 0%, #ece5d6 100%);
    border-top: 3px solid var(--gold);
    border-right: 1px solid var(--border);
}
.auth-aside-body { position: relative; z-index: 1; }
.auth-tagline {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(2rem, 1.3rem + 2vw, 3.3rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
}
.auth-tagline::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin-top: 1.5rem;
    background: var(--gold);
}
.auth-aside-text {
    max-width: 44ch;
    margin: 1.5rem 0 0 0;
    color: var(--text-soft);
}
.auth-watermark {
    position: absolute;
    right: -4%;
    bottom: -6%;
    width: min(56%, 460px);
    color: var(--gold);
    opacity: 0.16;
    pointer-events: none;
}
.auth-main {
    display: flex;
    flex-direction: column;
    padding: 2rem clamp(1.5rem, 5vw, 5rem);
    background: var(--surface);
    border-top: 3px solid var(--gold);
}
.auth-top {
    display: flex;
    justify-content: flex-end;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 2rem 0;
}
.auth-card h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    line-height: 1.2;
}
.auth-card .sub { margin-bottom: 1.75rem; }
.auth-card .actions button { width: 100%; }

/* --- Portal: app picker (index.html) ---
   Same card look as berleti-nyugta's house tiles, but each tile is a plain
   link to a tool rather than a button. */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.app-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-height: 230px;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.app-tile:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-panel);
    color: var(--text);
    transform: translateY(-2px);
}
.app-tile:focus-visible {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-ring);
}
.app-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: var(--gold-text);
}
.app-tile-icon img { width: 28px; height: 28px; }
.app-tile-name {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}
.app-tile-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.app-tile-go {
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--gold-text);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-aside {
        gap: 1.5rem;
        padding: 1.5rem var(--gutter) 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .auth-tagline { font-size: 1.7rem; max-width: 22ch; }
    .auth-tagline::after { margin-top: 1rem; }
    .auth-aside-text { display: none; }
    .auth-watermark { width: 180px; right: -30px; bottom: -40px; }
    .auth-main { border-top: none; padding: 1.25rem var(--gutter) 2rem; }
}

@media (max-width: 640px) {
    .app-tile { min-height: 0; }
}
