/* ===================================
   LTMC LOGIN PAGES (Admin + Member)
=================================== */

body {
    margin: 0;
    font-family: 'Work Sans', Arial, Helvetica, sans-serif;
    color: #f2f4f9;
}

a {
    color: inherit;
}

.login-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 84px 16px 40px;
    background:
        radial-gradient(circle at 18% 0%, rgba(212, 175, 55, .16), transparent 45%),
        linear-gradient(160deg, var(--ltmc-ink-2) 0%, var(--ltmc-ink) 70%, #000 130%);
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        58deg,
        rgba(212, 175, 55, .055) 0px,
        rgba(212, 175, 55, .055) 2px,
        transparent 2px,
        transparent 34px
    );
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.bg-orb.gold {
    width: 420px;
    height: 420px;
    top: -8%;
    right: -6%;
    background: radial-gradient(circle, rgba(212, 175, 55, .20), transparent 70%);
}

.bg-orb.navylight {
    width: 460px;
    height: 460px;
    bottom: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(18, 58, 115, .35), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
    .bg-orb.gold {
        animation: driftGold 14s ease-in-out infinite alternate;
    }

    .bg-orb.navylight {
        animation: driftNavy 17s ease-in-out infinite alternate;
    }
}

@keyframes driftGold {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-60px, 50px) scale(1.15); }
}

@keyframes driftNavy {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, -40px) scale(1.1); }
}

.brandbar {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 26px;
}

.brandbar .word {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 15px;
    letter-spacing: .32em;
    color: var(--ltmc-gold-bright);
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ltmc-muted-on-dark);
    text-decoration: none;
    align-self: flex-start;
    margin-bottom: 16px;
}

.back-home-link:hover {
    color: var(--ltmc-gold-bright);
}

.back-home-link svg {
    width: 14px;
    height: 14px;
}

.login-card {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(165deg, var(--ltmc-navy) 0%, #081733 85%);
    border: 1px solid rgba(212, 175, 55, .35);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

@media (prefers-reduced-motion: no-preference) {
    .login-card {
        animation: borderGlow 3.2s ease-in-out infinite;
    }
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 55, .18); }
    50% { box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 26px 2px rgba(212, 175, 55, .38); }
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        54deg, rgba(212, 175, 55, .08) 0px, rgba(212, 175, 55, .08) 2px,
        transparent 2px, transparent 22px
    );
    pointer-events: none;
}

.login-header {
    position: relative;
    text-align: center;
    padding: 34px 28px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, .2);
}

.login-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: 14px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}

@media (prefers-reduced-motion: no-preference) {
    .login-logo {
        animation: breathe 3.6s ease-in-out infinite;
    }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: #f2f4f9;
    margin: 0 0 4px;
    line-height: 1.3;
}

.login-system {
    font-size: 13px;
    color: var(--ltmc-muted-on-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ltmc-gold-bright);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-subtitle .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ltmc-gold-bright);
}

.card-body {
    position: relative;
    padding: 28px 28px 30px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 7px;
    color: var(--ltmc-muted-on-dark);
    text-transform: uppercase;
}

.input-group {
    display: flex;
    border: 1px solid rgba(212, 175, 55, .3);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, .97);
    transition: border-color .2s ease, box-shadow .2s ease, transform .18s ease;
}

.input-group:focus-within {
    border-color: var(--ltmc-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .22);
    transform: translateY(-1px);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: var(--ltmc-gold-dark);
}

.input-icon svg {
    width: 16px;
    height: 16px;
}

.input-group input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 12px 10px 2px;
    font-size: 14px;
    font-family: inherit;
    color: #10182b;
    min-width: 0;
    background: transparent;
}

.input-group input::placeholder {
    color: #98a2b3;
}

.forgot-row {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-row a {
    font-size: 12.5px;
    color: var(--ltmc-gold-bright);
    text-decoration: none;
    font-weight: 600;
}

.forgot-row a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 12px 0;
    background: linear-gradient(135deg, var(--ltmc-gold-bright), var(--ltmc-gold-dark));
    color: var(--ltmc-ink);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-login svg {
    width: 16px;
    height: 16px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(212, 175, 55, .35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg);
}

.btn-login:hover::after {
    animation: sheen .9s ease forwards;
}

@keyframes sheen {
    from { left: -60%; }
    to { left: 130%; }
}

.below-form {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--ltmc-muted-on-dark);
}

.below-form a {
    color: var(--ltmc-gold-bright);
    text-decoration: none;
    font-weight: 600;
}

.below-form a:hover {
    text-decoration: underline;
}

.page-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 26px;
    font-size: 12px;
    color: var(--ltmc-muted-on-dark);
    line-height: 1.6;
}

.ltmc-login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.ltmc-login-alert svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.ltmc-login-alert.alert-success {
    background: rgba(127, 216, 172, .12);
    border: 1px solid rgba(127, 216, 172, .3);
    color: #c9f2dd;
}

.ltmc-login-alert.alert-success svg {
    color: #7fd8ac;
}

.ltmc-login-alert.alert-danger {
    background: rgba(255, 143, 143, .12);
    border: 1px solid rgba(255, 143, 143, .3);
    color: #ffd6d6;
}

.ltmc-login-alert.alert-danger svg {
    color: #ff8f8f;
}

/* ---- entrance choreography ---- */

.anim-el {
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .anim-el {
        animation: riseIn .7s cubic-bezier(.2, .7, .2, 1) both;
    }

    .anim-logo-wrap {
        animation: popIn .8s cubic-bezier(.34, 1.56, .64, 1) both;
    }

    .anim-card {
        animation: cardIn .7s cubic-bezier(.2, .7, .2, 1) both;
    }

    .field-left {
        animation: slideRight .55s cubic-bezier(.2, .7, .2, 1) both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anim-el, .anim-logo-wrap, .anim-card, .field-left {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(.6) rotate(-6deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(34px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .42s; }
.d4 { animation-delay: .56s; }
.d5 { animation-delay: .66s; }
.d6 { animation-delay: .76s; }
.d7 { animation-delay: .92s; }
.d8 { animation-delay: 1.06s; }
.d9 { animation-delay: 1.18s; }
.d10 { animation-delay: 1.3s; }

@media (max-width: 576px) {
    .login-page {
        padding: 78px 18px 30px;
    }
}
