/* ═══════════════════════════════════════════════════════════════════════════
   VT Theme — Custom Login Page Styles
   Clean SaaS Design — White background + professional blue accents
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Base & Background ---------- */
body.login {
    margin: 0;
    padding: 1.25rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Login Wrapper (White Card) ---------- */
#login {
    width: 100%;
    max-width: 25rem;
    padding: 2.75rem 2.25rem 2.25rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(0, 0, 0, 0.05);
    animation: vt-card-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vt-card-enter {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Logo / Header ---------- */
#login h1 {
    margin-bottom: 0.5rem;
    text-align: center;
}

#login h1 a {
    display: inline-block;
    width: auto;
    height: auto;
    background-image: none !important;
    background-size: auto;
    text-indent: 0;
    overflow: visible;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #111827;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
}

#login h1 a:hover,
#login h1 a:focus {
    color: #2563eb;
}

/* Welcome subtitle */
#login h1::after {
    content: "Đăng nhập vào hệ thống quản trị";
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #9ca3af;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 1rem;
}

/* ---------- Form Container ---------- */
.login form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
}

/* ---------- Labels ---------- */
.login label {
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ---------- Inputs ---------- */
.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.375rem;
    margin-bottom: 0;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* ---------- Submit Button ---------- */
.login .button-primary,
.login #wp-submit {
    width: 100%;
    padding: 0.8125rem 1.5rem;
    background: #111827 !important;
    border: none !important;
    border-radius: 0.5rem;
    color: #ffffff !important;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-shadow: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin-top: 0.5rem;
    height: auto;
    line-height: normal;
}

.login .button-primary:hover,
.login #wp-submit:hover {
    background: #1f2937 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login .button-primary:active,
.login #wp-submit:active {
    transform: translateY(0);
    background: #030712 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login .button-primary:focus,
.login #wp-submit:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* ---------- Remember me ---------- */
.login .forgetmenot {
    float: none !important;
    display: flex;
    align-items: center;
    margin: 1.875rem 0 0.625rem !important;
}

.login .forgetmenot label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login .forgetmenot input[type="checkbox"] {
    accent-color: #2563eb;
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

.login .submit {
    float: none !important;
}

/* ---------- Links ---------- */
#login #nav,
#login #backtoblog {
    text-align: center;
    padding: 0;
    margin-top: 1.25rem;
}

#login #nav a,
#login #backtoblog a {
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

#login #nav a:hover,
#login #backtoblog a:hover {
    color: #2563eb;
}

/* Separator line */
#login #nav {
    border-top: 1px solid #f3f4f6;
    padding-top: 1.25rem;
}

/* ---------- Error / Message Boxes ---------- */
#login .message,
#login #login_error {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 0.5rem;
    color: #374151;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    box-shadow: none;
}

#login #login_error {
    border-left-color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

#login #login_error a {
    color: #2563eb;
    font-weight: 600;
}

/* ---------- Password Visibility Toggle ---------- */
.login .wp-pwd .button.wp-hide-pw {
    color: #9ca3af;
    background: transparent;
    border: none;
    box-shadow: none;
    top: 0.5625rem;
}

.login .wp-pwd .button.wp-hide-pw:hover {
    color: #2563eb;
}

.login .wp-pwd .button.wp-hide-pw:focus {
    box-shadow: none;
    outline: none;
    color: #2563eb;
}

/* ---------- Language Switcher ---------- */
.language-switcher {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

.language-switcher label {
    color: #6b7280 !important;
    font-size: 0.8125rem;
}

.language-switcher select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
}

.language-switcher .button {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem;
    color: #374151 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
}

.language-switcher .button:hover {
    background: #f9fafb !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

/* ---------- Privacy Policy ---------- */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 0.75rem;
}

.login .privacy-policy-page-link a {
    color: #9ca3af;
    font-size: 0.75rem;
}

.login .privacy-policy-page-link a:hover {
    color: #2563eb;
}

/* ---------- Form field spacing ---------- */
.login form p {
    margin-bottom: 1rem !important;
}

.login form p.submit {
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 30rem) {
    #login {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 0.625rem;
    }

    #login h1 a {
        font-size: 1.25rem;
    }
}
