/* ============================================================
   PARTNER LOGIN — MODERN THEME
   ============================================================ */

html {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    background-attachment: fixed !important;
    min-height: 100%;
}

body {
    background: transparent !important;
    display: grid;
    align-content: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* Hide navbar and sidebar on login */
.navbar,
.partner-sidebar,
.mobile-menu-toggle { display: none !important; }

/* Container */
#loginbody {
    width: 380px;
    max-width: 100%;
    height: auto;
    position: static;
    margin: 0;
    animation: loginFadeIn 500ms ease-out;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
#loginLogo {
    display: block;
    margin: 0 auto 32px;
    width: 160px;
    filter: brightness(0) invert(1);
}

/* Login card */
#loginSection {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Title */
h2 {
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 28px;
}

/* Labels */
label {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
#login input[type="text"],
#login input[type="password"],
input.input-large {
    width: 100% !important;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    color: #f1f5f9 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
    outline: none;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus,
input.input-large:focus {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

#login input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Button */
#login_button,
.loginButton {
    width: 100% !important;
    margin-top: 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

#login_button:hover,
.loginButton:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

#login_button:active,
.loginButton:active {
    transform: translateY(0);
}

/* Alerts */
.alert-error,
.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 12px 16px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 12px 16px;
}

/* Links */
a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 200ms ease;
}
a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Wrap */
#wrap {
    color: #ffffff;
    min-height: auto;
    height: auto;
    margin: 0;
}

/* Hide footer on login */
#push, #footer { display: none; }

.center { text-align: center; }
