﻿/* ======================================
   LOGIN PAGE ONLY
   ====================================== */

.logincontainer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 20px 20px 120px 20px;
}

/* Card */

.logincard {
    width: min(90vw, 480px);
    height: min(70vh, 650px);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    background: transparent;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    align-items: center;
}
.logincard button {
    width: 100%;
    max-width: 350px;
    padding: 16px 20px;
    font-size: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */

.header {
    text-align: center;
    margin-bottom: 35px;
}

    .header h1 {
        margin: 0 0 15px 0;
        color: var(--ingleby-green);
    }

.subtitle {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

.description {
    color: var(--muted);
}

/* Divider */

.divider {
    display: flex;
    align-items: center;
    width :80%;
    margin: 30px 0;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--ingleby-green);
    }

    .divider span {
        padding: 0 20px;
        color: var(--muted);
    }

.btn-ms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ms-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ms-icon svg {
        flex-shrink: 0;
    }

/* OTP section */
.otp-panel label {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* override global input spacing slightly */

.otp-panel input {
    width: 60%;
    display: block;
    margin: 0 auto 15px auto;
    text-align: center;
    letter-spacing: 4px;
    font-size: 20px;
}
.otp-panel button {
    width: 60%;
    display: block;
    margin: 0 auto;
}
.help-text {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    opacity: 0.65;
}


/* Enrollment */
.enroll-gps-status {
    width: 80%;
    margin: 20px auto;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: rgba(41, 91, 61, 0.08);
    color: var(--muted);
}

    .enroll-gps-status.ok {
        color: var(--ingleby-green);
    }

    .enroll-gps-status.warn {
        color: #9a6b00;
    }

    .enroll-gps-status.error {
        color: #b00020;
    }

#enrollForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#enrollFields {
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    #enrollFields input {
        width: 75%;
        margin: 8px auto;
        font-size: 18px;
        letter-spacing: normal;
        text-align: center;
    }

#btnEnroll:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}