/**
 * 1688buyer CMS - Modern Authentic 1688 Style Login
 * Color Palette:
 *  - Brand Orange: #ff5000 / #ff6000 / #e04400
 *  - Dark Neutral: #111827 / #1f2937 / #374151
 *  - Subtle Gray: #6b7280 / #9ca3af / #e5e7eb / #f3f4f6
 *  - Card Bg: #ffffff
 */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(circle at 50% 0%, #fff4ed 0%, #f7f8fb 60%, #edf1f7 100%);
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Wrappers */
.wrap.cms-login-wrap,
.wrap-login,
.wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: transparent;
    box-sizing: border-box;
}

.container.cms-login-container,
.wrap-login .container,
.wrap .container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
}

.cms-sign-login-page {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 1688 Clean Modern Login Card */
.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px -12px rgba(255, 80, 0, 0.08), 
                0 0 1px 1px rgba(0, 0, 0, 0.04), 
                0 6px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 80, 0, 0.12);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Top 1688 Gradient Accent Bar */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6a00 0%, #ff5000 50%, #ff3b00 100%);
}

/* Brand & Header Section */
.login-auth-header {
    padding: 38px 32px 14px;
    text-align: center;
}

.login-auth-brand-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.login-auth-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.login-auth-brand:hover,
.login-auth-brand:focus {
    text-decoration: none;
}

.logo-1688 {
    font-size: 34px;
    font-weight: 900;
    color: #ff5000;
    letter-spacing: -1.2px;
    line-height: 1;
}

.logo-buyer {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ff5000;
    background: #fff0e6;
    border: 1px solid #ffd8c2;
    border-radius: 6px;
    text-transform: uppercase;
    line-height: 1.2;
    vertical-align: middle;
}

.login-auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 12px 0 6px;
    letter-spacing: -0.3px;
}

.login-auth-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Card Body & Form Elements */
.login-card-body {
    padding: 12px 32px 32px;
}

.login-form-group {
    margin-bottom: 18px;
}

.login-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.login-input {
    width: 100% !important;
    height: 46px !important;
    padding: 10px 14px 10px 42px !important;
    font-size: 14px !important;
    color: #111827 !important;
    background-color: #fafbfc !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.login-input::placeholder {
    color: #9ca3af;
}

.login-input:hover {
    border-color: #d1d5db !important;
    background-color: #ffffff !important;
}

.login-input:focus {
    border-color: #ff5000 !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

.input-wrap:focus-within .input-icon {
    color: #ff5000;
}

/* Password Toggle Eye Icon */
.show_hide_password .login-input {
    padding-right: 44px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    color: #9ca3af;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #ff5000;
    text-decoration: none;
}

/* Remember Me Checkbox */
.login-options-row {
    margin: 10px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-remember-me .checkbox {
    margin: 0;
}

.login-remember-me label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    padding-left: 22px;
    user-select: none;
    margin-bottom: 0;
}

.login-remember-me input[type="checkbox"] {
    accent-color: #ff5000;
    cursor: pointer;
}

/* 1688 Signature Action Button */
.login-submit-group {
    margin-bottom: 0;
}

.btn-1688-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6000 0%, #ff5000 50%, #e04400 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 80, 0, 0.32);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    text-decoration: none;
}

.btn-1688-login:hover {
    background: linear-gradient(135deg, #ff6a00 0%, #ff5800 50%, #d83d00 100%);
    box-shadow: 0 8px 24px rgba(255, 80, 0, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-1688-login:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255, 80, 0, 0.28);
}

.btn-1688-login:focus {
    outline: none;
    box-shadow: none;
}

/* Card Footer */
.login-card-footer {
    padding: 16px 24px;
    background-color: #fafbfc;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

/* Validation Errors */
.help-block-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    margin-bottom: 0;
}

.has-error .login-input {
    border-color: #ef4444 !important;
    background-color: #fff9f9 !important;
}

.has-error .login-input:focus {
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .wrap.cms-login-wrap,
    .wrap-login,
    .wrap {
        padding: 24px 12px;
    }
    .login-auth-header {
        padding: 28px 20px 10px;
    }
    .login-card-body {
        padding: 10px 20px 24px;
    }
    .logo-1688, .logo-buyer {
        font-size: 28px;
    }
}