/* ═══════════════════════════════════════════════════════════════
   Bizdev Ops BADR — Custom Login Page
   Dark slate + warm orange, matches frontend theme.
   ═══════════════════════════════════════════════════════════════ */

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

/* ── Page background ── */
body.login {
    background: #0f1117;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(249,115,22,.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 80%, rgba(96,165,250,.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Logo / header ── */
#login h1 a {
    background-image: none;
    background-color: transparent;
    width: auto;
    height: auto;
    display: block;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #f97316;
    letter-spacing: -.3px;
    text-decoration: none;
    margin-bottom: 4px;
    background-size: unset;
}

#login h1 a::before {
    content: '⬡ ';
    font-size: 20px;
}

#login h1 a:hover { color: #fb923c; text-shadow: 0 0 24px rgba(249,115,22,.4); }

/* ── Login box ── */
#login {
    width: 360px;
    padding: 0;
    position: relative;
    z-index: 1;
}

#loginform,
#lostpasswordform {
    background: #181c27;
    border: 1px solid #2a3045;
    border-radius: 16px;
    padding: 32px 32px 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
    margin-top: 16px;
}

/* ── Labels ── */
#loginform label,
#lostpasswordform label {
    color: #8b93ae;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* ── Inputs ── */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="text"],
#lostpasswordform input[type="email"] {
    background: #1f2435 !important;
    border: 1px solid #2a3045 !important;
    border-radius: 8px !important;
    color: #eef0f8 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    width: 100% !important;
    box-shadow: none !important;
    transition: border-color .18s ease !important;
    box-sizing: border-box !important;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus,
#lostpasswordform input[type="text"]:focus,
#lostpasswordform input[type="email"]:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15) !important;
    outline: none !important;
}

/* ── Remember me ── */
.forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forgetmenot label {
    color: #8b93ae !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}

input[type="checkbox"] {
    accent-color: #f97316;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ── Submit button ── */
#loginform .submit,
#lostpasswordform .submit {
    margin-top: 20px;
}

#wp-submit,
#lostpasswordform input[type="submit"] {
    background: linear-gradient(135deg, #f97316 0%, #ea6c0c 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 11px 24px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: opacity .18s ease, box-shadow .18s ease !important;
    box-shadow: 0 4px 16px rgba(249,115,22,.3) !important;
    letter-spacing: .2px !important;
}

#wp-submit:hover,
#lostpasswordform input[type="submit"]:hover {
    opacity: .92 !important;
    box-shadow: 0 6px 24px rgba(249,115,22,.45) !important;
}

#wp-submit:active,
#lostpasswordform input[type="submit"]:active {
    opacity: .85 !important;
    transform: translateY(1px);
}

/* ── Error / notice messages ── */
#login_error,
.message {
    background: rgba(244,63,94,.1) !important;
    border: 1px solid rgba(244,63,94,.3) !important;
    border-left: 3px solid #f43f5e !important;
    border-radius: 8px !important;
    color: #f87171 !important;
    font-size: 13px !important;
    padding: 12px 14px !important;
    margin-bottom: 16px !important;
}

.message {
    background: rgba(96,165,250,.1) !important;
    border-color: rgba(96,165,250,.3) !important;
    border-left-color: #60a5fa !important;
    color: #93c5fd !important;
}

/* ── Nav links below form ── */
#nav,
#backtoblog {
    text-align: center;
    margin-top: 12px;
}

#nav a,
#backtoblog a {
    color: #5a6278 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: color .15s !important;
}

#nav a:hover,
#backtoblog a:hover {
    color: #f97316 !important;
}

/* ── Divider line under logo ── */
#login h1 {
    margin-bottom: 4px;
}

#login h1::after {
    content: 'Bizdev Husnul Khotimah - NG';
    display: block;
    text-align: center;
    font-size: 12px;
    color: #5a6278;
    font-weight: 400;
    margin-top: 2px;
    font-family: 'DM Sans', sans-serif;
}

/* ── Shake animation on error ── */
@keyframes badr-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

#login_error ~ #loginform {
    animation: badr-shake .4s ease;
}

/* ── Responsive ── */
@media (max-width: 400px) {
    #login { width: calc(100vw - 32px); }
    #loginform, #lostpasswordform { padding: 24px 20px; }
}
