/* ===== JMD Login Page ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.jmd-login-page {
    background: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

.jmd-login-wrap {
    width: 100%;
    max-width: 440px;
    padding: 24px 16px;
}

.jmd-login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.jmd-login-logo {
    text-align: center;
    margin-bottom: 24px;
}
.jmd-login-logo img {
    max-height: 60px;
    max-width: 200px;
}
.jmd-site-name {
    font-size: 22px;
    font-weight: 700;
    color: #1d4ed8;
}

.jmd-login-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: #0f172a;
}

/* Fields */
.jmd-field {
    margin-bottom: 18px;
}
.jmd-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}
.jmd-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .15s;
    outline: none;
    background: #fff;
    color: #111827;
}
.jmd-field input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}

/* Buttons */
.jmd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    text-decoration: none;
}
.jmd-btn:disabled { opacity: .6; cursor: not-allowed; }
.jmd-btn-primary  { background: #1d4ed8; color: #fff; }
.jmd-btn-primary:hover  { background: #1e40af; }
.jmd-btn-full     { width: 100%; }

/* Alerts */
.jmd-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.jmd-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
