/* Panda Used Cars - Admin Login */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body.signin {
    height: 100%;
    background: #f0f2f5;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    display: flex;
    min-height: 100vh;
}

/* ---- Brand panel ---- */
.login-brand {
    flex: 1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(145deg, #071525 0%, #0c2847 45%, #123d66 100%);
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.login-brand-grid {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8c547;
    margin-bottom: 28px;
}

.brand-badge i { font-size: 13px; }

.brand-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.brand-title span {
    color: #e8c547;
}

.brand-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.brand-features .feat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8c547;
    font-size: 16px;
}

.brand-features strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
    color: #fff;
}

.brand-features span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.brand-footer-note {
    position: absolute;
    bottom: 32px;
    left: 56px;
    right: 56px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    z-index: 1;
}

/* ---- Form panel ---- */
.login-form-panel {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 32px;
    background: #f7f8fa;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 4px 24px rgba(7, 21, 37, 0.08), 0 1px 3px rgba(7, 21, 37, 0.04);
    border: 1px solid rgba(7, 21, 37, 0.06);
}

.login-card-header {
    margin-bottom: 32px;
}

.login-card-header h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #071525;
}

.login-card-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.form-group-custom {
    margin-bottom: 18px;
}

.form-group-custom label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.login-card .form-control {
    width: 100%;
    height: 46px !important;
    padding: 0 14px 0 42px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-card .form-control:focus {
    border-color: #123d66 !important;
    box-shadow: 0 0 0 3px rgba(18, 61, 102, 0.12) !important;
    outline: none;
}

.login-card .form-control.code {
    padding-left: 14px !important;
}

.captcha-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.captcha-row .form-control {
    flex: 1;
}

.captcha-row a {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.captcha-row .imgcode {
    display: block;
    height: 46px;
    width: auto;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 24px;
}

.checkbox-custom {
    position: relative;
    padding: 0 0 0 26px;
    margin: 0;
    display: inline-block;
}

.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.checkbox-custom label:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
    position: absolute;
    display: inline-block;
    font-family: 'FontAwesome';
    content: "\f00c";
    top: 50%;
    left: 3px;
    margin-top: -7px;
    font-size: 12px;
    line-height: 1;
    color: #123d66;
}

.checkbox-custom label {
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    font-weight: normal;
    margin: 0;
}

.btn-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0c2847 0%, #123d66 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(12, 40, 71, 0.35);
}

.btn-login:hover,
.btn-login:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(12, 40, 71, 0.45);
    color: #fff;
    outline: none;
}

.btn-login:active {
    transform: translateY(0);
}

.login-page-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

label.error {
    position: inherit;
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* Mobile */
@media screen and (max-width: 960px) {
    .login-page { flex-direction: column; }

    .login-brand {
        flex: none;
        padding: 36px 28px 32px;
        min-height: auto;
    }

    .brand-title { font-size: 28px; }
    .brand-features { display: none; }
    .brand-footer-note { display: none; }

    .login-form-panel {
        flex: 1;
        padding: 24px 20px 32px;
    }

    .login-card {
        padding: 28px 24px 24px;
        border-radius: 12px;
    }
}
