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

body.login {
    background: #f8fafc !important;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%) !important;
    font-family: 'Outfit', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow: hidden;
}

/* Floating background orbs animation */
body.login::before,
body.login::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

body.login::before {
    background: rgba(59, 130, 246, 0.15);
    top: -10%;
    left: -10%;
}

body.login::after {
    background: rgba(139, 92, 246, 0.1);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

#login h1 {
    display: none !important;
}

/* Eradicate Caps Lock */
.capslock,
[class*="capslock"],
[id*="capslock"],
.dashicons-arrow-up-alt {
    display: none !important;
}

/* Glass Card */
#login {
    width: 100% !important;
    max-width: 960px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    border-radius: 28px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04), 0 0 40px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    flex-direction: row !important;
    overflow: hidden !important;
    min-height: 560px !important;
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Left Banner */
.login-left-banner {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e293b;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on banner */
.login-left-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 6s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 200%;
    }
}

.login-logo-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 24px 48px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: rotate(-3deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    animation: badgeFloat 5s ease-in-out infinite alternate;
}

.login-logo-card:hover {
    transform: rotate(0deg) scale(1.08);
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

@keyframes badgeFloat {
    0% {
        transform: rotate(-3deg) translateY(0);
    }

    100% {
        transform: rotate(-1deg) translateY(-8px);
    }
}

.logo-title-stock {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(to right, #1E9CD7, #0f9bdb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1.1;
    letter-spacing: -1px;
}

.logo-title-supply {
    font-size: 38px;
    font-weight: 800;
    display: block;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #0f172a;
}

.logo-sup {
    color: #70B83E;
}

.logo-ply {
    color: #F0A719;
}

.banner-description {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    max-width: 340px;
    margin: 0 auto;
}

/* Right Form */
.login-right-container {
    flex: 1;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
}

.login-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-form-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 32px;
    text-align: left;
}

/* Form Styles */
body.login form#loginform {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.login form>p>label[for="user_login"],
body.login form>p>label[for="user_pass"],
body.login form .user-pass-wrap>label {
    display: none !important;
}

/* Checkbox and Label styles */
body.login form .forgetmenot {
    display: flex;
    align-items: center;
    margin-top: 16px !important;
}

body.login form .forgetmenot label {
    display: flex !important;
    align-items: center;
    margin-left: 10px;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

body.login form input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0 !important;
}

body.login form input[type="checkbox"]:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

body.login form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.login form .user-pass-wrap,
body.login form p {
    margin: 0 !important;
    position: relative !important;
    width: 100% !important;
}

/* Inputs */
.input-icon-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

.input-icon-wrapper.delay-1 {
    animation-delay: 0.1s;
}

.input-icon-wrapper.delay-2 {
    animation-delay: 0.2s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-field-icon {
    position: absolute !important;
    left: 20px !important;
    top: 30px !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
    transition: color 0.3s ease !important;
    z-index: 5 !important;
}

/* Hide/Show password button (right side) */
.wp-hide-pw {
    position: absolute !important;
    right: 18px !important;
    top: 30px !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #556d8f !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.login form input[type="text"],
body.login form input[type="password"] {
    width: 100% !important;
    height: 56px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    padding: 0 45px 0 54px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01) !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    font-family: 'Outfit', sans-serif !important;
}

body.login form input[type="text"]::placeholder,
body.login form input[type="password"]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus {
    background-color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 2px 4px rgba(0, 0, 0, 0.01) !important;
}

.input-icon-wrapper:focus-within .input-field-icon {
    color: #6366f1 !important;
}

/* Submit */
body.login input[type="submit"]#wp-submit {
    width: 100% !important;
    height: 56px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    font-family: 'Outfit', sans-serif !important;
    margin-top: 8px !important;
}

body.login input[type="submit"]#wp-submit:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35) !important;
}

body.login input[type="submit"]#wp-submit:active {
    transform: translateY(1px) scale(0.98) !important;
}

p#nav,
p#backtoblog {
    text-align: center !important;
    margin: 24px 0 0 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

p#nav a,
p#backtoblog a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    font-weight: 500 !important;
}

p#nav a:hover,
p#backtoblog a:hover {
    color: #3b82f6 !important;
}

/* Error Messages & Notifications */
body.login #login_error,
body.login .message,
body.login .success {
    border-radius: 14px !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    border-left: 4px solid #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 24px !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    font-family: 'Outfit', sans-serif !important;
}

body.login .message {
    background: #eff6ff !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    border-left-color: #3b82f6 !important;
    color: #1e40af !important;
}

body.login #login_error {
    background: #fef2f2 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    border-left-color: #ef4444 !important;
    color: #991b1b !important;
}

/* Responsive */
@media (max-width: 800px) {
    #login {
        flex-direction: column !important;
        max-width: 440px !important;
        width: 100% !important;
    }

    .login-left-banner {
        padding: 40px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .login-right-container {
        padding: 40px 24px;
    }

    .login-logo-card {
        padding: 16px 32px;
        margin-bottom: 24px;
    }

    .logo-title-stock,
    .logo-title-supply {
        font-size: 30px;
    }

    .banner-description {
        display: none;
    }
}

@media (max-width: 480px) {
    body.login {
        padding: 16px !important;
    }

    #login {
        border-radius: 20px !important;
    }

    .login-left-banner {
        padding: 32px 16px;
    }

    .login-right-container {
        padding: 32px 16px;
    }

    .login-form-title {
        font-size: 28px;
    }

    body.login form input[type="text"],
    body.login form input[type="password"],
    body.login input[type="submit"]#wp-submit {
        height: 50px !important;
    }
}