/* ============================================================
   login.css — DICHVU247
   prefix: lg-
   Breakpoint: max-width 991px (mobile) / min-width 992px (desktop)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   MOBILE ≤ 991px
   ============================================================ */
@media (max-width: 991px) {

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg,
        #5b9bd5 0%,
        #2256d4 25%,
        #1e8ef5 65%,
        #1a3faa 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes floatA {
    0%,100% { transform: translateY(0) translateX(-50%); }
    50%      { transform: translateY(-20px) translateX(-50%); }
}
@keyframes floatB {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
@keyframes floatC {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(18px); }
}
@keyframes floatD {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

body::before {
    content: '';
    position: fixed;
    top: 50px; left: 50%;
    transform: translateX(-50%);
    width: 320px; height: 180px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatA 6s ease-in-out infinite;
}
body::after {
    content: '';
    position: fixed;
    top: 20px; right: -50px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatB 8s ease-in-out infinite;
}

.blob { position:fixed; border-radius:50%; pointer-events:none; z-index:0; }
.blob-1 { animation: floatC 7s ease-in-out infinite; }
.blob-2 { animation: floatB 9s ease-in-out infinite 1s; }
.blob-3 { animation: floatD 5s ease-in-out infinite 0.5s; }

.hd-header, .hd-bottom-nav, .ft-footer { display: none !important; }

.lg-topbar {
    position: relative; z-index: 2;
    display: flex; align-items: center;
    padding: 20px 20px 8px;
}
.lg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lg-brand-sub { color: rgba(255,255,255,0.65); font-size: 11px; }

.lg-hero {
    position: relative; z-index: 2;
    text-align: center;
    padding: 24px 20px 0;
}
.lg-hero-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.lg-hero-title { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.lg-hero-sub   { color: rgba(255,255,255,0.6); font-size: 13px; }

.lg-container {
    position: relative; z-index: 2;
    margin: 20px 16px 0;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    padding: 22px 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lg-security { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.lg-security-icon {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.lg-security-text { color: rgba(255,255,255,0.75); font-size: 11px; }

.lg-field { margin-bottom: 18px; }
.lg-label { color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 500; margin-bottom: 6px; display: block; }
.lg-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lg-label-link { font-size: 11px; color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; }
.lg-label-link:hover { color: #38bdf8; }

.lg-input-wrap { position: relative; }
.lg-input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255,255,255,0.35);
    padding: 8px 36px 8px 0;
    font-size: 15px;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.lg-input-wrap input::placeholder { color: rgba(255,255,255,0.3); font-size: 13px; }
.lg-input-wrap input:focus { border-bottom-color: #38bdf8; }

.lg-toggle-pw {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: rgba(255,255,255,0.3);
    display: flex; align-items: center;
}
.lg-toggle-pw:hover { color: rgba(255,255,255,0.7); }

.lg-error {
    background: rgba(220,38,38,0.2);
    border: 1px solid rgba(220,38,38,0.4);
    border-radius: 10px;
    padding: 10px 14px; font-size: 13px; color: #fca5a5;
    margin-bottom: 16px;
}
.lg-success {
    background: rgba(22,163,74,0.2);
    border: 1px solid rgba(22,163,74,0.4);
    border-radius: 10px;
    padding: 10px 14px; font-size: 13px; color: #86efac;
    margin-bottom: 16px;
}

.lg-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(90deg, #bae6fd, #a5f3fc);
    color: #1e3a8a;
    border: none; border-radius: 50px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; margin-top: 6px;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.1s;
}
.lg-btn:hover  { opacity: 0.9; }
.lg-btn:active { transform: scale(0.98); }

.lg-foot { text-align: center; color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 14px; }
.lg-foot a { color: #7dd3fc; font-weight: 600; text-decoration: none; }

.lg-hotline { text-align: center; color: rgba(255,255,255,0.4); font-size: 12px; margin-top: 10px; line-height: 1.7; }
.lg-hotline a { color: rgba(255,255,255,0.75); font-weight: 600; text-decoration: none; }

/* ── 4 Icon grid (thay bottombar cũ) ── */
.lg-bottombar {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 24px 16px 0;
    padding-bottom: 32px;
}
.lg-bitem {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 8px;
    text-decoration: none; color: rgba(255,255,255,0.75); font-size: 12px;
    transition: color 0.15s;
}
.lg-bitem:hover { color: #fff; }
.lg-bitem-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.lg-bitem:hover .lg-bitem-icon { background: rgba(255,255,255,0.2); }

.lg-desc { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 18px; line-height: 1.6; }
.lg-desc strong { color: #fff; }

.lg-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 20px; }
.lg-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.lg-step-dot.active  { background: #38bdf8; color: #1e3a8a; }
.lg-step-dot.done    { background: rgba(255,255,255,0.2); color: #fff; }
.lg-step-dot.pending { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.35); }
.lg-step-line        { width: 32px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.15); }
.lg-step-line.done   { background: #38bdf8; }

.lg-otp-row { display: flex; gap: 8px; }
.lg-otp-row input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255,255,255,0.35);
    padding: 8px 0;
    font-size: 20px; color: #fff;
    letter-spacing: 6px;
    outline: none; font-family: inherit;
    transition: border-color 0.2s;
}
.lg-otp-row input:focus { border-bottom-color: #38bdf8; }
.lg-otp-row input::placeholder { color: rgba(255,255,255,0.3); font-size: 13px; letter-spacing: 0; }

.lg-resend {
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,0.3); border-radius: 20px;
    background: transparent; color: rgba(255,255,255,0.7);
    font-size: 11px; font-weight: 600;
    white-space: nowrap; cursor: pointer; font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.lg-resend:hover:not(:disabled) { background: rgba(255,255,255,0.15); color: #fff; }
.lg-resend:disabled { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.25); cursor: default; }
.lg-otp-hint { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 6px; }

.lg-dev {
    background: rgba(255,251,230,0.1);
    border: 1px dashed rgba(255,220,0,0.4);
    border-radius: 8px; padding: 8px 12px;
    font-size: 12px; color: rgba(255,240,150,0.9);
    margin-bottom: 14px; line-height: 1.6;
}

} /* end @media max-width 991px */

/* ============================================================
   DESKTOP ≥ 992px
   ============================================================ */
@media (min-width: 992px) {

.lg-topbar, .lg-hero, .lg-bottombar { display: none; }

.lg-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    margin: 40px auto;
}

.lg-security { display: none; }

.lg-field { margin-bottom: 16px; }
.lg-label { font-size: 13px; font-weight: 700; color: #576880; margin-bottom: 6px; display: block; }
.lg-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lg-label-link { font-size: 13px; font-weight: 700; color: #2563eb; text-decoration: none; }
.lg-label-link:hover { text-decoration: underline; }

.lg-input-wrap { position: relative; }
.lg-input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    font-size: 14px; color: #111;
    background: #fff; outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.lg-input-wrap input:focus { border-color: #2563eb; }
.lg-input-wrap input::placeholder { color: #bbb; }

.lg-toggle-pw {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #bbb;
    display: flex; align-items: center;
}
.lg-toggle-pw:hover { color: #888; }

.lg-error {
    background: #fff0f0; border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #cc0000;
    margin-bottom: 16px;
}
.lg-success {
    background: #f0fff4; border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #1a7a3c;
    margin-bottom: 16px;
}

.lg-btn {
    width: 100%; padding: 13px;
    background: #2563eb; color: #fff;
    border: none; border-radius: 24px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; margin-top: 6px;
    font-family: inherit;
    transition: background 0.2s;
}
.lg-btn:hover { background: #1a6ae0; }

.lg-foot { font-size: 13px; color: #666; text-align: center; margin-top: 12px; }
.lg-foot a { color: #2563eb; font-weight: 700; text-decoration: none; }

.lg-hotline { font-size: 12px; color: #666; text-align: center; margin-top: 16px; line-height: 1.8; }
.lg-hotline a { color: #2563eb; font-weight: 700; text-decoration: none; }

.lg-desc { font-size: 13px; color: #555; margin-bottom: 16px; line-height: 1.6; }

.lg-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 20px; }
.lg-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.lg-step-dot.active  { background: #2563eb; color: #fff; }
.lg-step-dot.done    { background: #e8f0ff; color: #2563eb; }
.lg-step-dot.pending { background: #f0f0f0; color: #aaa; }
.lg-step-line { width: 32px; height: 2px; border-radius: 2px; background: #e0e0e0; }
.lg-step-line.done { background: #2563eb; }

.lg-otp-row { display: flex; gap: 8px; }
.lg-otp-row input {
    flex: 1; padding: 12px 16px;
    border: 1.5px solid #d0d0d0; border-radius: 10px;
    font-size: 16px; color: #111; letter-spacing: 4px;
    outline: none; font-family: inherit;
    transition: border-color 0.2s;
}
.lg-otp-row input:focus { border-color: #2563eb; }
.lg-resend {
    padding: 0 16px; border: 1.5px solid #2563eb; border-radius: 10px;
    background: #fff; color: #2563eb; font-size: 12px; font-weight: 700;
    white-space: nowrap; cursor: pointer; font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.lg-resend:hover:not(:disabled) { background: #2563eb; color: #fff; }
.lg-resend:disabled { border-color: #ddd; color: #bbb; cursor: default; }
.lg-otp-hint { font-size: 11px; color: #aaa; margin-top: 5px; }

.lg-dev {
    background: #fffbe6; border: 1px dashed #e6c000;
    border-radius: 8px; padding: 8px 12px;
    font-size: 12px; color: #856400;
    margin-bottom: 14px; line-height: 1.6;
}

} /* end @media min-width 992px */

