/* =====================================================
   MakerBud — WordPress Login Page  v2.1
   ===================================================== */

/* ---- Reset WordPress login page defaults ---- */
body.login {
    background: linear-gradient(135deg, #5f74e7 0%, #7748a2 52%, #3f367f 100%) !important;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow-x: hidden;
    padding: 20px !important;
    box-sizing: border-box;
}

body.login::before {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    top: -120px;
    left: -120px;
    background: rgba(195, 210, 255, 0.18);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

body.login::after {
    content: '';
    position: fixed;
    width: 380px;
    height: 380px;
    bottom: -120px;
    right: -100px;
    background: rgba(209, 185, 246, 0.18);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

/* WP wrapper resets */
body.login #loginwrap,
body.login #login-logo { display: none !important; }

body.login #login {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(25, 15, 80, 0.32);
    padding: 44px 42px 36px;
    width: 100% !important;
    max-width: 420px !important;
    position: relative;
    z-index: 1;
    margin: auto !important;
    float: none !important;
}

/* WP wraps the whole form in a div that can break layout */
body.login #login form,
body.login .login #login form { padding: 0 !important; margin: 0 !important; border: none !important; box-shadow: none !important; background: transparent !important; }

/* Override WP's default width on the login container */
body.login #login,
body.login .login-action-login #login,
body.login .login-action-register #login,
body.login .login-action-lostpassword #login { width: 100% !important; max-width: 420px !important; }

/* Logo area */
body.login h1 {
    margin: 0 0 28px;
    text-align: center;
}

body.login h1 a {
    display: block;
    width: 200px;
    height: 66px;
    margin: 0 auto;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-indent: -9999px;
    overflow: hidden;
    box-shadow: none !important;
}

/* Form */
body.login form {
    margin-top: 0;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0;
}

body.login form p {
    margin: 0 0 18px;
}

body.login form p.submit {
    margin: 24px 0 0;
}

/* Labels */
body.login form label {
    font-weight: 600;
    color: #2f396f;
    font-size: 0.88rem;
    display: block;
    margin-bottom: 7px;
}

/* Inputs */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    width: 100% !important;
    padding: 13px 15px !important;
    border: 1.5px solid #cfd8fd !important;
    border-radius: 12px !important;
    font-size: 0.97rem !important;
    font-family: "Segoe UI", "Inter", system-ui, sans-serif !important;
    color: #1d2340 !important;
    background: #f8f9ff !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    margin-top: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #667eea !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18) !important;
}

/* Remember me */
body.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

body.login .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 0.88rem;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}

/* Submit button */
body.login input[type="submit"],
body.login .button-primary {
    width: 100% !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: "Segoe UI", "Inter", system-ui, sans-serif !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.38) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
    text-shadow: none !important;
    height: auto !important;
    letter-spacing: 0.02em;
    -webkit-appearance: none;
    appearance: none;
}

body.login input[type="submit"]:hover,
body.login .button-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.46) !important;
}

body.login input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Navigation links */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    margin-top: 16px;
    padding: 0;
}

body.login #nav a,
body.login #backtoblog a {
    color: #667eea;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Error message */
body.login #login_error {
    background: #fff1f5;
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    color: #be123c;
    padding: 13px 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.login #login_error a {
    color: #be123c;
    font-weight: 600;
}

/* Success / info message */
body.login .message,
body.login .updated {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    color: #15803d;
    padding: 13px 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Privacy policy link (hide or minimise) */
body.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

body.login .privacy-policy-page-link a {
    color: rgba(255,255,255,0.75);
}

/* Divider between form fields */
body.login .login-username,
body.login .login-password {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 480px) {
    body.login #login {
        padding: 32px 24px 28px;
        border-radius: 18px;
        margin: 16px;
        max-width: calc(100% - 32px);
    }
}
