/* ===== Admin Login Page ===== */
.admin-login-page {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Background */
.admin-login-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(145deg, #0f0a1e 0%, #1a1333 35%, #2d1f4e 70%, #1e1535 100%);
    z-index: 0;
}
.admin-login-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
}
.admin-login-blob-1 {
    width: 600px; height: 600px;
    background: #7c6cff;
    top: -200px; right: -100px;
}
.admin-login-blob-2 {
    width: 450px; height: 450px;
    background: #ec4899;
    bottom: -150px; left: -100px;
    opacity: 0.2;
}
.admin-login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Wrapper */
.admin-login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.admin-login-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    max-width: 1080px;
    width: 100%;
    min-height: 640px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
}

/* Visual Panel */
.admin-login-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 10, 30, 0.3) 0%,
        rgba(15, 10, 30, 0.55) 50%,
        rgba(15, 10, 30, 0.92) 100%
    );
    z-index: 1;
}
.visual-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    color: white;
}
.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(124, 108, 255, 0.25);
    border: 1px solid rgba(124, 108, 255, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}
.visual-badge i { color: #a78bfa; }
.visual-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}
.visual-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 380px;
    margin-bottom: 1.75rem;
}
.visual-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.visual-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}
.visual-feature i {
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    color: #c4b5fd;
    flex-shrink: 0;
}

/* Form Panel */
.admin-login-form-panel {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.75rem;
}
.login-form-inner {
    width: 100%;
    max-width: 380px;
}

/* Back link */
.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.35rem 0;
    transition: color 0.2s, gap 0.2s;
}
.login-back-link:hover {
    color: #7c6cff;
    gap: 0.55rem;
}
.login-back-link i { font-size: 0.9rem; }

/* Brand */
.login-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.login-brand-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #7c6cff, #a78bfa);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(124, 108, 255, 0.35);
}
.login-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.login-brand-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

/* Header */
.login-header { margin-bottom: 1.75rem; }
.login-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}
.login-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Alert */
.login-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.login-alert i { font-size: 1.1rem; flex-shrink: 0; }
.login-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}
.login-alert-success i { color: #16a34a; }

/* Register link */
.login-register-link {
    text-align: center;
    margin-top: 1.25rem;
}
.login-register-link p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}
.login-register-link a {
    color: #7c6cff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.login-register-link a:hover {
    color: #6c63ff;
    text-decoration: underline;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-floating-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label-custom {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}
.form-control-custom {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e1b4b;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control-custom::placeholder { color: #cbd5e1; }
.form-control-custom:hover {
    border-color: #c4b5fd;
    background: #fff;
}
.form-control-custom:focus {
    border-color: #7c6cff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.12);
}
.form-control-custom:focus ~ .input-icon,
.input-icon-wrap:focus-within .input-icon {
    color: #7c6cff;
}
.password-toggle {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: color 0.2s;
    z-index: 1;
}
.password-toggle:hover { color: #7c6cff; }

/* Submit button */
.btn-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #7c6cff 0%, #6c63ff 50%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 8px 24px rgba(124, 108, 255, 0.4);
    position: relative;
    overflow: hidden;
}
.btn-login-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 108, 255, 0.5);
}
.btn-login-submit:hover::before { opacity: 1; }
.btn-login-submit:active { transform: translateY(0); }
.btn-login-submit i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}
.btn-login-submit:hover i { transform: translateX(4px); }

/* Footer note */
.login-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}
.login-footer-note i {
    color: #c4b5fd;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .admin-login-container {
        grid-template-columns: 1fr;
        max-width: 480px;
        min-height: auto;
    }
    .admin-login-visual {
        min-height: 220px;
    }
    .visual-content {
        padding: 1.75rem;
    }
    .visual-title { font-size: 1.25rem; }
    .visual-desc { font-size: 0.85rem; margin-bottom: 1rem; }
    .visual-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .visual-feature { font-size: 0.78rem; }
    .visual-feature i { width: 28px; height: 28px; font-size: 0.8rem; }
    .admin-login-form-panel {
        padding: 2rem 1.75rem 2.25rem;
    }
    .login-back-link { margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
    .admin-login-wrapper { padding: 1rem; }
    .admin-login-container { border-radius: 20px; }
    .admin-login-visual { min-height: 180px; }
    .visual-features { display: none; }
    .login-title { font-size: 1.4rem; }
}
