/* Fonts: css/fonts.css (DM Sans and Manrope served by this app, linked before this file in App.razor). */

:root {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
input {
    font: inherit
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

button:disabled {
    cursor: wait;
    opacity: .65
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 5px
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 54% 46%
}

/* Brand panel (always dark): navy background with teal light bands, the color logo (img/drism-brand.png, from assets/drims.png) and the tagline. */
.story {
    position: relative;
    background: linear-gradient(160deg, var(--art-bg-2), var(--art-bg) 55%);
    color: var(--art-text);
    padding: 42px 56px 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 760px
}

.story:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 42%, var(--art-glow), transparent 55%);
    pointer-events: none
}

.story-bands {
    position: absolute;
    inset: 0;
    pointer-events: none
}

/* Teal light planes in the corners, as in the brand sheet: a wedge with its bright edge at the top left, a thin ray and a wedge at the bottom right. */
.story-bands span {
    position: absolute
}

.story-bands span:nth-child(1) {
    top: 0;
    left: 0;
    width: 48%;
    height: 42%;
    background: linear-gradient(135deg, var(--art-band) 0%, var(--art-band-soft) 38%, transparent 70%);
    clip-path: polygon(0 0, 100% 0, 0 100%)
}

.story-bands span:nth-child(2) {
    top: 0;
    left: 0;
    width: 62%;
    height: 56%;
    background: linear-gradient(135deg, transparent calc(50% - 1px), var(--art-line) 50%, transparent calc(50% + 1px));
    opacity: .7
}

.story-bands span:nth-child(3) {
    right: 0;
    bottom: 0;
    width: 58%;
    height: 46%;
    background: linear-gradient(315deg, var(--art-band) 0%, var(--art-band-soft) 40%, transparent 72%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%)
}

/* App tile of the brand (menu): the color mark on the dark brand square. */
.brand-mark {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    background: linear-gradient(160deg, var(--art-bg-2), var(--art-bg));
    border: 1px solid var(--art-line);
    border-radius: var(--radius-lg)
}

.brand-mark img {
    width: 68%;
    height: auto
}

.story-content {
    margin: auto;
    position: relative;
    width: 100%;
    max-width: 560px;
    text-align: center
}

.brand-hero {
    display: block;
    width: min(100%, 470px);
    margin: 0 auto
}

.brand-hero img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px var(--art-logo-shadow))
}

.brand-tagline {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 34px 0 30px
}

.brand-tagline span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--art-line))
}

.brand-tagline span:last-child {
    background: linear-gradient(90deg, var(--art-line), transparent)
}

.brand-tagline strong {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
    color: var(--art-muted);
    white-space: nowrap
}

.story-content>p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--art-body);
    margin: 0 0 30px
}

.pillars {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--art-pillar);
    font-size: 11px
}

.pillars>span {
    display: flex;
    gap: 7px;
    align-items: center
}

.pillars i {
    height: 6px;
    width: 6px;
    border-radius: var(--radius-xs)
}

.pillar-teal {
    background: var(--brand-teal)
}

.pillar-gold {
    background: var(--brand-gold)
}

.pillar-white {
    background: var(--art-text)
}

.story-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 1.3px;
    color: var(--art-footer);
    border-top: 1px solid var(--art-footer-line);
    padding-top: 22px;
    margin-top: 40px
}

.access {
    display: flex;
    flex-direction: column;
    padding: 48px 50px 30px;
    background: var(--surface);
    position: relative
}

.top-note {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end
}

.tiny-square {
    width: 5px;
    height: 5px;
    background: var(--slate)
}

.form-area {
    width: 100%;
    max-width: 380px;
    margin: auto;
    padding: 65px 0
}

.section-number {
    color: var(--brand-accent-text);
    font: 500 11px monospace;
    margin-bottom: 27px
}

.section-number span {
    color: var(--text-muted);
    margin-left: 10px;
    letter-spacing: 1.5px;
    font: 500 9px 'DM Sans', sans-serif
}

/* The color mark on the dark app tile, as in the brand sheet. */
.welcome-icon {
    height: 58px;
    width: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--art-line);
    background: linear-gradient(160deg, var(--art-bg-2), var(--art-bg));
    border-radius: 16px;
    box-shadow: 0 8px 20px var(--shadow-sm);
    margin-bottom: 22px
}

.welcome-icon img {
    width: 38px;
    height: auto
}

h2 {
    font: 800 29px 'Manrope', sans-serif;
    letter-spacing: -1.1px;
    margin: 0 0 9px
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 35px
}

label {
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-bottom: 9px
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--border);
    background: var(--field-bg);
    border-radius: var(--radius-lg);
    padding: 0 15px;
    transition: box-shadow .2s, border-color .2s
}

.input-wrap:focus-within {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px var(--focus-shadow)
}

.input-wrap>svg {
    color: var(--text-faint);
    flex-shrink: 0
}

.input-wrap input {
    width: 100%;
    border: 0;
    background: transparent;
    height: 51px;
    outline: none;
    font-size: 12px;
    color: var(--text-2);
    min-width: 0
}

.input-wrap input::placeholder {
    color: var(--text-faint)
}

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 23px
}

.text-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-accent-text);
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    gap: 3px;
    align-items: center
}

.password-label .text-button {
    margin-bottom: 9px
}

.eye {
    background: none;
    border: 0;
    display: flex;
    padding: 5px;
    color: var(--text-faint)
}

.session-info {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    margin: 18px 0 27px
}

.session-info svg {
    color: var(--slate)
}

.submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--button-primary);
    color: var(--on-button-primary);
    height: 53px;
    padding: 0 19px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 15px var(--button-primary-shadow);
    transition: background .2s, transform .2s
}

.submit:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px)
}

.secure {
    display: flex;
    gap: 7px;
    justify-content: center;
    align-items: center;
    margin: 20px 0 33px;
    color: var(--text-faint);
    font-size: 10px
}

.secure svg {
    color: var(--text-muted)
}

.help {
    border-top: 1px solid var(--border);
    padding-top: 23px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted)
}

.access-footer {
    display: flex;
    justify-content: space-between;
    color: var(--text-faint);
    font-size: 9px
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    letter-spacing: 1px
}

.footer-badge i {
    height: 5px;
    width: 5px;
    background: var(--success);
    border-radius: 50%
}

.error {
    padding: 12px;
    margin: 14px 0;
    color: var(--danger-text);
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.5
}

.session {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px
}

.session-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--blue)
}

.session h3 {
    margin-bottom: 5px
}

.session p {
    font-size: 12px;
    color: var(--text-muted)
}

.base-note {
    line-height: 1.6;
    margin: 22px 0
}

@media(min-width:1500px) {
    .story {
        padding-left: 90px;
        padding-right: 90px
    }

    .brand-hero {
        width: 520px
    }
}

@media(max-width:1000px) {
    .story {
        padding: 35px 30px
    }

    .access {
        padding: 40px 30px
    }

    .brand-tagline strong {
        font-size: 11px;
        letter-spacing: 4px
    }

    .pillars {
        gap: 16px
    }

    .story-footer {
        font-size: 7px
    }
}

@media(max-width:740px) {
    .shell {
        grid-template-columns: 1fr
    }

    .story {
        min-height: 0;
        padding: 30px 16px 26px
    }

    .brand-hero {
        width: min(70%, 260px)
    }

    .brand-tagline {
        gap: 12px;
        margin: 22px 0 0
    }

    .brand-tagline strong {
        font-size: 9px;
        letter-spacing: 3px
    }

    .story-content>p,
    .story-footer,
    .pillars {
        display: none
    }

    .brand-mark {
        width: 34px;
        height: 34px
    }

    .access {
        padding: 25px 16px;
        min-height: 620px
    }

    .top-note {
        display: none
    }

    .form-area {
        padding: 25px 0 40px
    }

    .section-number {
        margin-bottom: 20px
    }

    h2 {
        font-size: 26px
    }

    .access-footer {
        margin-top: auto
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}

:root .language-choice {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--text-2);
    font-size: 12px;
    margin-bottom: 18px;
}

.language-choice select {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 7px 10px;
    background: var(--field-bg);
    color: var(--text-2);
}

/* Theme switch next to the language (ThemeToggle). */
.access-preferences {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px
}

.access-preferences .language-choice {
    margin: 0
}