﻿/* Login + Error frame (Views/Shared/_LayoutLogin.cshtml) - login refresh 2026-11-27, owner picked mockup B:
   brand text on the darkened photo, one white card on the right; stacks on narrow screens. */
html, body.lg-page { height: 100%; }

body.lg-page {
    margin: 0;
    background: #1b130d url('../../img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Even shade: the centred brand text sits over the bright tube on wide screens */
.lg-shade {
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .55) 100%);
}

.lg-wrap {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;          /* brand + card stay one group: never pinned to the screen edges */
    gap: clamp(48px, 7vw, 120px);
    padding: 48px 32px 72px;
}

/* ── Brand ── */
.lg-brand {
    position: relative;
    z-index: 0;                       /* own stacking context: the glow stays behind the text, above the shade */
    max-width: 520px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

/* Soft dark glow behind the brand text only (the bright tube runs behind it); no visible edge */
.lg-brand::before {
    content: "";
    position: absolute;
    inset: -60px -80px;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.lg-brand-over {
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f8b26a;
}

.lg-brand-title {
    margin: 0 0 10px;
    font-size: 46px;
    font-weight: 600;
}

.lg-brand-text {
    margin: 0;
    font-size: 18px;
    color: #eee;
}

.lg-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    text-align: center;
    font-size: 12px;
    color: #ccc;
}

/* ── Card ── */
.lg-card {
    flex: none;
    width: 400px;
    max-width: 100%;
    padding: 28px 32px 22px;
    background: #fff;
    border-radius: var(--tu-radius-dialog);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.lg-logo {
    display: block;
    height: 52px;
    margin: 0 auto 20px;
}

.lg-card label.control-label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.lg-card .form-control {
    height: 38px;
    box-shadow: none;
}

.lg-remember {
    margin: -4px 0 16px;
    font-size: 13px;
}

.lg-remember input[type="checkbox"] {
    margin-top: 2px;
}

.lg-submit {
    height: 40px;
    font-size: 15px;
    font-weight: 600;
}

.lg-foot {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* TempData messages above the form */
.lg-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid;
    border-radius: var(--tu-radius-box);
}

.lg-alert .fa { margin-top: 2px; }
.lg-alert-ok { background: #eef8f0; border-color: #bfe3c6; color: #23662f; }
.lg-alert-fail { background: #fdf1f0; border-color: #f1c6c2; color: #8a2a21; }
.lg-alert-warn { background: #fdf6e8; border-color: #efd9a6; color: #7a5410; }
.lg-alert-info { background: #eef5fb; border-color: #c4dbef; color: #1f4f78; }

/* Microsoft (Entra ID) sign-in above the password form (Entra-Login-Spec.md 4.8) */
.login-ms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 38px;
    font-weight: 600;
    background-color: #fff;
    border-color: #ccc;
    border-radius: var(--tu-radius-control);
}

.login-ms:hover,
.login-ms:focus {
    background-color: #f5f8fc;
    border-color: #0064b5;
}

.login-ms-logo {
    width: 18px;
    height: 18px;
    flex: none;
}

.login-ms-hint {
    margin: 6px 0 0;
    text-align: center;
    font-size: 12px;
    color: #888;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    font-size: 12px;
    color: #888;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e3e3e3;
}

/* Error page inside the card: grey buttons keep the former layout-wide hover */
.tu-error-page .btn-default { border-color: #e7e7e7; }
.tu-error-page .btn-default:hover { background-color: #0064b520; border-color: #0064b5; }

/* ── Narrow screens: brand above the card, both centred ── */
@media (max-width: 900px) {
    .lg-wrap {
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 32px 16px 64px;
    }

    .lg-brand { text-align: center; }
    .lg-brand-title { font-size: 34px; }
    .lg-brand-text { font-size: 15px; }
    .lg-shade { background: rgba(0, 0, 0, .55); }

    .lg-note { bottom: 16px; }
}
