/* =========================================
   PLMUN LOGIN PAGE - CLEAN CSS
   ========================================= */

/* ---------- Box Sizing ---------- */
.login-wrapper,
.login-wrapper * {
    box-sizing: border-box;
}

/* ---------- Login Wrapper ---------- */
.login-wrapper {
    width: 100%;
    min-height: calc(100vh - 127px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 65px 16px 30px;
    margin: 0;

    position: relative;
    overflow: visible;
}

/* ---------- Login Card ---------- */
.login-wrapper > .login-card {
    display: block;
    position: relative;

    width: 100%;
    max-width: 480px;
    height: auto;
    min-height: 0;

    margin: 0 auto;
    padding: 32px 36px;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(11, 74, 18, 0.35);

    /* IMPORTANT: All four corners */
    border-radius: 24px !important;

    /* Clip card contents to rounded shape */
    overflow: hidden !important;

    clip-path: none !important;

    background-clip: padding-box;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    color: #0b4a12;

    transform: translateY(15px);
}

/* ---------- Logo and Titles ---------- */
.login-card .platform-label {
    text-align: center;
    margin-bottom: 24px;
}

.login-card .login-logo {
    display: block;
    height: 110px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 12px;
}

.login-card .platform-label h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0b4a12;
    margin: 0;
}

.login-card .platform-label small {
    display: block;
    font-size: 1.1rem;
    color: #0b4a12;
    margin-top: 4px;
}

/* ---------- Labels ---------- */
.login-card label {
    display: block;
    font-weight: 700;
    color: #0b4a12;
    margin-bottom: 8px;
}

.login-card .hint {
    font-weight: 400;
}

/* ---------- Input Groups ---------- */
.login-card .input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 22px;
}

/* ---------- Input Fields ---------- */
.login-card input {
    display: block;
    width: 100%;
    height: 52px;

    padding: 0 16px;

    border: 1px solid #d5dbd5;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.92);

    font-size: 1rem;
    box-sizing: border-box;
}

.login-card input:focus {
    outline: none;
    border-color: #0b4a12;

    box-shadow: 0 0 0 3px rgba(11, 74, 18, 0.15);
}

/* ---------- Login Button ---------- */
.login-card .login-btn {
    display: block;

    width: 100%;
    height: 52px;

    margin-top: 12px;

    border: none;
    border-radius: 14px;

    background: #0b4a12;
    color: #fff;

    font-size: 1.05rem;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;
}

.login-card .login-btn:hover {
    background: #0d5a16;
}

/* ---------- Evaluation Status ---------- */
.login-card .eval-status {
    text-align: center;
    margin-top: 18px;

    font-size: 0.95rem;
    color: #0b4a12;
}

.login-card .active-dot {
    font-weight: 700;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 576px) {

    .login-wrapper {
        min-height: calc(100vh - 90px);
        padding: 30px 12px;
    }

    .login-wrapper > .login-card {
        max-width: 100%;
        padding: 26px 22px;

        border-radius: 20px !important;

        transform: translateY(10px);
    }

    .login-card .platform-label h1 {
        font-size: 1.4rem;
    }

    .login-card .platform-label small {
        font-size: 0.95rem;
    }

    .login-card .login-logo {
        height: 90px;
    }
}

/* =========================================
   FIX: blue underline / hover highlight on links
   ========================================= */

/* no underline anywhere, no blue on hover */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

a:hover,
a:focus,
a:active {
    color: inherit;
}

/* everything inside a link keeps the link's colour and no underline */
a *,
a:hover * {
    text-decoration: none !important;
}

/* no blue flash when tapping on phones */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* text selection uses gold instead of the default blue */
::selection {
    background: rgba(224, 184, 76, 0.35);
    color: #fff;
}
.login-card ::selection {
    background: rgba(11, 74, 18, 0.25);
    color: #0b4a12;
}

/* =========================================
   LOGIN CARD ENTRANCE (also plays after logging out)
   ========================================= */
@keyframes loginIn {
    from { opacity: 0; transform: translateY(calc(var(--lift, 15px) + 28px)) scale(0.97); }
    to   { opacity: 1; transform: translateY(var(--lift, 15px)); }
}

.login-wrapper > .login-card {
    --lift: 15px;
    animation: loginIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@media (max-width: 576px) {
    .login-wrapper > .login-card { --lift: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-wrapper > .login-card { animation: none; }
}

.eval-status .closed-dot { color: #b42318; font-weight: 700; }