@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@500&display=swap');

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

body {
    font-family: 'DM Sans', sans-serif;
    background: #f5f5f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.ilms-error-box.error{
    color: #991b1b;
}

/* ── LOGO ── */
.login-logo {
    width: 64px;
    height: 64px;
    border: 2px solid #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #0a0a0a;
    margin-bottom: 20px;
}

.login-logo a {
    color: #0a0a0a !important;
}

/* ── HEADING ── */
.login-heading {
    text-align: center;
    margin-bottom: 28px;
}
.login-heading h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}
.login-heading p {
    font-size: 14px;
    color: #737373;
}

/* ── CARD ── */
.login-card {
    background: #fff;
    border: 1px solid #e5e5e3;
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 400px;
}

.login-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 4px;
}
.login-card-sub {
    font-size: 13px;
    color: #737373;
    margin-bottom: 24px;
}

/* ── FORM FIELDS ── */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 6px;
}
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e5e3;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #0a0a0a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.form-group input::placeholder {
    color: #b0b0ae;
}
.form-group input:focus {
    border-color: #0a0a0a;
}

/* ── REMEMBER ME + FORGOT ── */
.form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.remember-me input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0a0a0a;
    cursor: pointer;
}
.remember-me span {
    font-size: 13px;
    color: #525252;
}
.forgot-link {
    font-size: 13px;
    color: #737373;
    text-decoration: none;
    transition: color 0.15s;
}
.forgot-link:hover {
    color: #0a0a0a;
}

/* ── SUBMIT BUTTON ── */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #0a0a0a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
.login-btn:hover {
    background: #222;
}

/* ── FOOTER LINK ── */
.login-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #737373;
    text-align: center;
}
.login-footer a {
    color: #0a0a0a;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.login-footer a:hover {
    color: #444;
}


/* 03-04-2026 */

/* ================================
   FIELD ERROR MESSAGE
================================ */

.field-error {
    font-size: 13px;
    color: #d93025; /* Professional red (Google style) */
    margin-top: 5px;
    line-height: 1.4;
    display: block;
    min-height: 16px; /* Prevent layout shift */
    font-weight: 500;
}

/* Hide empty error cleanly */
.field-error:empty {
    display: none;
}


/* ================================
   INPUT ERROR STATE
================================ */

.input-error {
    border-color: #d93025 !important;
    background-color: #fff5f5;
}

/* Smooth transition */
input,
select,
textarea {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}


/* ================================
   FOCUS STATE (ERROR PRIORITY)
================================ */

.input-error:focus {
    border-color: #b3261e !important;
    box-shadow: 0 0 0 1px rgba(217, 48, 37, 0.2);
    outline: none;
}


/* ================================
   OPTIONAL: SUCCESS STATE (FUTURE READY)
================================ */

.input-valid {
    border-color: #34a853;
    background-color: #f1fff5;
}


/* ================================
   CHECKBOX (REMEMBER ME)
================================ */

.form-extras .field-error {
    margin-top: 6px;
}

/* 08-04-2026 */

.login-form-custom-class{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ================================
   SMALL SCREEN IMPROVEMENT
================================ */

@media (max-width: 480px) {
    .field-error {
        font-size: 12px;
    }
}

/* ── OTP STYLES ── */
#otp_input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e5e3;
    border-radius: 10px;
    font-size: 24px;
    font-family: 'DM Mono', monospace;
    text-align: center;
    letter-spacing: 12px;
    color: #0a0a0a;
    background: #fafafa;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#otp_input:focus {
    border-color: #0a0a0a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

.otp-resend-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f1f0;
}

#otp-timer-msg {
    color: #737373;
    font-size: 13px;
}

#otp-timer {
    font-weight: 600;
    color: #0a0a0a;
}

#resendOTP {
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.2s;
}

#resendOTP:hover {
    color: #1e40af;
    text-decoration: underline;
}

.otp-verify-btn {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}