.login-shell {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
}

#loginForm {
    position: relative;
}

.domi-peek {
    position: absolute;
    right: 4px;
    bottom: calc(100% - 35px);
    width: 135px;
    height: 140px;
    object-fit: cover;
    object-position: top;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.login-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 24px;
    padding: 86px 24px 32px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand .logo {
    width: 80px;
    height: 24px;
    object-fit: contain;
}

.brand .title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-strong);
}

.brand .desc {
    margin-top: 6px;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.login-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .02));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-heading);
}

.field label .req {
    color: var(--required);
    font-size: 14px;
}

.input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--h-input);
    padding: 0 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s;
}

.input-box:focus-within {
    border-color: var(--brand);
}

.input-box .input-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.input-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-strong);
}

.input-box input:focus {
    outline: none;
}

.input-box input::placeholder {
    color: var(--text-placeholder);
}

.field.err .input-box {
    border-color: var(--error);
}

.msg {
    display: none;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--error);
}

.field.err .msg {
    display: block;
}

.pin-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.divider .line {
    flex: 1;
    border-top: 1px solid var(--border);
}

.divider .or {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-placeholder);
}

dialog.contact {
    width: min(360px, calc(100vw - 40px));
    padding: 24px 20px 20px;
    text-align: left;
}

dialog.contact h2 {
    text-align: center;
}

.contact-intro {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.contact-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
}

.contact-card .who {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.contact-card .name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
}

.contact-card .role {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.contact-card .detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 0;
}

.contact-card .detail > div {
    display: flex;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.5;
}

.contact-card .detail dt {
    flex: 0 0 32px;
    color: var(--text-placeholder);
}

.contact-card .detail dd {
    margin: 0;
    color: var(--text-strong);
}

.contact-footnote {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-placeholder);
    text-align: center;
}

@media (min-width: 768px) {
    .login-content {
        padding: 50px 24px 50px;
        gap: 28px;
    }

    .actions {
        gap: 20px;
    }

    .login-card {
        padding: 0;
        background: none;
        border: 0;
        filter: none;
    }

    .domi-peek {
        right: 30px;
        height: 100px;
        bottom: calc(100% - 22px);
    }
}
