* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    background: var(--background);
    color: var(--ink);
    overflow-x: hidden;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.login-page { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 5%; animation: slideIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }

.login-header { width: 100%; max-width: 1250px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; transition: transform 0.3s ease; }
.brand:hover { transform: scale(1.02); }
.brand-logo { width: 68px; height: 68px; object-fit: contain; background: var(--surface-solid); border-radius: 14px; padding: 5px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-text strong { font-size: 19px; font-weight: 800; color: var(--ink); }
.brand-text span { font-size: 12px; font-weight: 600; color: var(--muted); }

.back-home { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 12px; background: var(--surface-solid); color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); transition: all 0.3s ease; }
.back-home:hover { background: var(--primary); color: #fff; transform: translateX(-3px); box-shadow: var(--shadow-sm); }

.login-layout { width: 100%; max-width: 1250px; margin: auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center; }

.login-intro { min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; padding: 50px 20px 35px 20px; }
.intro-kicker { display: inline-block; padding: 7px 12px; border-radius: 20px; background: var(--primary-soft); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 22px; }
.login-intro h1 { margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.04; letter-spacing: -2.5px; font-weight: 800; color: var(--ink); }
.login-intro h1 span { color: var(--muted); }
.login-intro p { max-width: 570px; margin: 24px 0 38px; color: var(--muted); font-size: 15px; line-height: 1.8; font-weight: 500; }

.feature-list { display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; transition: transform 0.3s ease; }
.feature-item:hover { transform: translateX(8px); }
.feature-icon { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary-soft); color: var(--ink); font-size: 15px; font-weight: 800; }
.feature-item strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 800; color: var(--ink); }
.feature-item span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.intro-footer { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }

.login-card-section { display: flex; justify-content: center; perspective: 1000px; }
.login-card { width: 100%; max-width: 480px; padding: 42px; background: var(--surface); backdrop-filter: blur(15px); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-lg); transition: transform 0.5s ease, box-shadow 0.5s ease; }
.login-card:hover { transform: translateY(-5px) rotateX(2deg); box-shadow: var(--shadow-lg); }

.card-heading { margin-bottom: 30px; }
.login-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--primary-soft); font-size: 23px; margin-bottom: 17px; }
.card-kicker { display: block; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 7px; }
.card-heading h2 { margin: 0; font-size: 32px; font-weight: 800; color: var(--ink); }
.card-heading p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.alert-error { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding: 13px 15px; border-radius: 12px; background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); font-size: 12.5px; font-weight: 700; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; font-size: 15px; opacity: 0.6; pointer-events: none; z-index: 2; transition: opacity 0.3s; }
.input-wrapper input { width: 100%; height: 54px; padding: 0 18px 0 46px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-soft); color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 600; outline: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.input-wrapper input::placeholder { color: var(--muted); }
.input-wrapper input:focus { background: var(--surface-solid); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); transform: scale(1.02); }
.input-wrapper input:focus ~ .input-icon { opacity: 1; }

.toggle-password { position: absolute; right: 10px; padding: 7px 10px; border: none; background: transparent; color: var(--muted); font-family: inherit; font-size: 11px; font-weight: 800; cursor: pointer; transition: color 0.3s; }
.toggle-password:hover { color: var(--ink); }

.login-button { width: 100%; height: 55px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 15px; background: linear-gradient(135deg, var(--ink-soft), var(--primary-dark)); color: #ffffff; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-md); transition: all 0.3s ease; }
.login-button:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.login-button:active { transform: translateY(0); }
.login-button .arrow { font-size: 18px; transition: transform 0.3s ease; }
.login-button:hover .arrow { transform: translateX(6px); }

.login-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.login-note p { margin: 0; }
.page-footer { width: 100%; max-width: 1250px; margin: 25px auto 0; text-align: center; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.4px; }

@media (max-width: 900px) {
    .login-layout { grid-template-columns: 1fr; gap: 20px; }
    .login-intro { min-height: auto; padding: 20px 0; }
    .intro-footer { display: none; }
    .login-intro h1 { font-size: 44px; }
    .login-card { max-width: 600px; }
}
@media (max-width: 600px) {
    .login-page { padding: 18px; }
    .login-header { margin-bottom: 15px; }
    .brand-logo { width: 52px; height: 52px; }
    .brand-text strong { font-size: 15px; }
    .brand-text span { font-size: 9px; }
    .back-home { padding: 9px 11px; font-size: 10px; }
    .login-intro { padding: 15px 0; }
    .login-intro h1 { font-size: 38px; }
    .login-intro p { font-size: 13px; margin: 18px 0 25px; }
    .login-card { padding: 27px 22px; border-radius: 22px; }
    .card-heading h2 { font-size: 27px; }
    .feature-list { gap: 13px; }
}
