/* ============================================================
   MAY HOTEL — AUTH PAGES (Login · Register · OTP · Profile)
============================================================ */

/* ---------- SPLIT LAYOUT ---------- */
.mh-auth {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
    background: var(--bg-cream);
}

/* ---------- CỘT ẢNH (VISUAL SIDE) ---------- */
.mh-auth-visual {
    position: relative;
    background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1400') center/cover no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 80px;
}

.mh-auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(10, 29, 48, 0.92) 0%, rgba(15, 41, 66, 0.78) 60%, rgba(15, 41, 66, 0.55) 100%);
    z-index: 1;
}

.mh-auth-visual-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 480px;
}

.mh-auth-ornament {
    font-size: 18px;
    letter-spacing: 12px;
    color: var(--gold);
    margin-bottom: 24px;
    padding-left: 12px;
}

.mh-auth-visual-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.mh-auth-rule {
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 24px 0;
}

.mh-auth-visual-content p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 40px;
}

.mh-auth-visual-sign {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.mh-auth-visual-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.mh-auth-visual-sign span {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

/* ---------- CỘT FORM ---------- */
.mh-auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: var(--bg-cream);
}

.mh-auth-form-inner {
    width: 100%;
    max-width: 420px;
}

.mh-auth-form-inner--wide {
    max-width: 540px;
}

/* ---------- LOGO ---------- */
.mh-auth-logo {
    display: inline-block;
    margin-bottom: 40px;
}

.mh-auth-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ---------- HEADER ---------- */
.mh-auth-header {
    margin-bottom: 32px;
}

.mh-auth-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-hover);
    margin-bottom: 12px;
}

.mh-auth-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 10px;
}

.mh-auth-header p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.6;
}

.mh-auth-header p strong {
    color: var(--navy);
    font-weight: 700;
}

/* ---------- ALERTS ---------- */
.mh-auth-alert {
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
}

.mh-auth-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.mh-auth-alert.error {
    background: #fff1f2;
    border: 1px solid #ffc7cf;
    color: var(--red, #b82435);
}

.mh-auth-alert.success {
    background: #eaf8f2;
    border: 1px solid #c7eadb;
    color: #1a7a3f;
}

/* ---------- FORM ---------- */
.mh-auth-form {
    display: grid;
    gap: 18px;
}

.mh-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.mh-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.2px;
}

.mh-field label .req {
    color: var(--red, #b82435);
    margin-left: 1px;
}

/* Input wrapper with icon */
.mh-field-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 16px;
    height: 50px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mh-field-input:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-soft);
    background: #fff;
}

.mh-field-input>i {
    color: var(--gold-hover);
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.mh-field-input:focus-within>i {
    color: var(--navy);
}

.mh-field-input input,
.mh-field-input textarea {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    padding: 0;
    width: 100%;
}

.mh-field-input input::placeholder,
.mh-field-input textarea::placeholder {
    color: #b0b8c8;
    font-weight: 400;
}

.mh-field-input--textarea {
    height: auto;
    padding: 14px 16px;
    align-items: flex-start;
}

.mh-field-input--textarea>i {
    margin-top: 4px;
}

.mh-field-input--textarea textarea {
    resize: vertical;
    min-height: 64px;
    line-height: 1.6;
}

.mh-field-input--locked {
    background: #F4F6F8;
    border-color: transparent;
}

.mh-field-input--locked input {
    color: var(--muted);
    cursor: not-allowed;
}

/* Input OTP */
.mh-input-otp {
    text-align: center;
    letter-spacing: 10px;
    font-size: 22px !important;
    font-weight: 700 !important;
    padding-left: 10px !important;
}

/* Toggle password */
.mh-toggle-pass {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s ease;
}

.mh-toggle-pass:hover {
    color: var(--navy);
}

/* Row: remember + forgot */
.mh-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.mh-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.mh-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold-hover);
    cursor: pointer;
}

.mh-auth-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-hover);
    transition: color 0.2s ease;
}

.mh-auth-link:hover {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- SUBMIT BUTTON ---------- */
.mh-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: var(--navy-dark);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mh-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.48);
    background: linear-gradient(135deg, var(--gold-hover), #8a6f14);
    color: #fff;
}

.mh-auth-submit:active {
    transform: translateY(0);
}

/* ---------- DIVIDER + GOOGLE ---------- */
.mh-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
}

.mh-auth-divider span {
    height: 1px;
    background: var(--border);
}

.mh-auth-divider p {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.mh-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mh-auth-google img {
    width: 20px;
    height: 20px;
}

.mh-auth-google:hover {
    border-color: var(--gold);
    background: #fffdf7;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.15);
}

/* ---------- FOOTER LINKS ---------- */
.mh-auth-bottom {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-top: 24px;
}

.mh-auth-bottom a {
    color: var(--gold-hover);
    font-weight: 700;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.mh-auth-bottom a:hover {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mh-auth-back {
    text-align: center;
    font-size: 13px;
    margin-top: 14px;
}

.mh-auth-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.mh-auth-back a:hover {
    color: var(--navy);
}

.mh-auth-policy {
    text-align: center;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 24px;
}

.mh-auth-policy a {
    color: var(--gold-hover);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mh-auth-extra-row {
    text-align: center;
    margin-top: 14px;
}

.mh-auth-link-btn {
    background: none;
    border: none;
    color: var(--gold-hover);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
}

.mh-auth-link-btn:hover {
    background: var(--gold-soft);
    color: var(--navy);
}

/* ---------- CAPTCHA ---------- */
.mh-captcha-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.mh-field-input--captcha {
    min-width: 0;
}

.mh-captcha-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 18px;
    background: linear-gradient(135deg, #F4EFE6, #FAF7F2);
    border: 1.5px dashed var(--gold);
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 4px;
    color: var(--navy);
    text-decoration: line-through;
    user-select: none;
    min-width: 90px;
}

.mh-captcha-refresh {
    width: 50px;
    height: 50px;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 15px;
    transition: all 0.2s ease;
}

.mh-captcha-refresh:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-hover);
    transform: rotate(90deg);
}

/* ---------- PROFILE ---------- */
.mh-profile {
    padding: 48px 0 80px;
    background: var(--bg-cream);
    min-height: 100vh;
}

.mh-profile-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.mh-profile-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.mh-profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(15, 41, 66, 0.05);
}

.mh-profile-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px var(--gold-soft);
}

.mh-profile-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.mh-profile-role {
    display: inline-block;
    background: var(--gold-soft);
    color: var(--gold-hover);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
}

.mh-profile-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}

.mh-profile-quote i {
    color: var(--gold);
    font-size: 14px;
}

.mh-profile-nav {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    display: grid;
    gap: 4px;
    box-shadow: 0 6px 24px rgba(15, 41, 66, 0.05);
}

.mh-profile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.2s ease;
}

.mh-profile-nav a i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    color: var(--gold-hover);
}

.mh-profile-nav a:hover {
    background: var(--gold-soft);
    color: var(--navy);
}

.mh-profile-nav a.active {
    background: var(--navy);
    color: #fff;
}

.mh-profile-nav a.active i {
    color: var(--gold);
}

.mh-profile-main {
    min-width: 0;
}

.mh-profile-card--form {
    text-align: left;
    padding: 36px 40px;
}

.mh-profile-head {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mh-profile-head h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.mh-profile-head h2 i {
    color: var(--gold);
    font-size: 18px;
}

.mh-profile-head p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
}

.mh-profile-form {
    display: grid;
    gap: 18px;
}

.mh-profile-actions {
    margin-top: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.mh-profile-actions .mh-auth-submit {
    width: auto;
    min-width: 200px;
    padding: 0 32px;
    margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .mh-auth {
        grid-template-columns: 1fr;
    }

    .mh-auth-visual {
        display: none;
    }

    .mh-auth-form-wrap {
        padding: 48px 24px;
        min-height: 100vh;
    }

    .mh-profile-wrap {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .mh-profile-side {
        position: static;
    }

    .mh-profile-nav {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mh-auth-form-wrap {
        padding: 32px 20px;
        align-items: flex-start;
    }

    .mh-auth-logo img {
        height: 44px;
    }

    .mh-auth-header h1 {
        font-size: 24px;
    }

    .mh-grid-2 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .mh-auth-row {
        flex-wrap: wrap;
    }

    .mh-profile-card--form {
        padding: 24px 20px;
    }

    .mh-profile-actions {
        justify-content: stretch;
    }

    .mh-profile-actions .mh-auth-submit {
        width: 100%;
    }

    .mh-profile-nav {
        grid-auto-flow: row;
    }

    .mh-captcha-code {
        min-width: 80px;
        padding: 0 12px;
        font-size: 18px;
        letter-spacing: 3px;
    }
}