/* =====================================================================
   Login / Register - Internet & Cable theme
   Left: animated fiber network + brand. Right: the form.
   ===================================================================== */
:root {
    --ac-navy: #071330;
    --ac-navy-2: #0c1f4d;
    --ac-blue: #2563eb;
    --ac-cyan: #06b6d4;
    --ac-teal: #14b8a6;
    --ac-violet: #7c3aed;
    --ac-ink: #0f172a;
    --ac-muted: #64748b;
    --ac-line: #e2e8f0;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.ac-body {
    margin: 0;
    font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
    color: var(--ac-ink);
    background: #eef3fb;
}
.ac-shell { min-height: 100vh; display: flex; }

/* ---------------- left: brand + network ---------------- */
.ac-brand {
    position: relative;
    flex: 1 1 56%;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(6, 182, 212, .28), transparent 60%),
        radial-gradient(900px 700px at 110% 110%, rgba(124, 58, 237, .30), transparent 60%),
        linear-gradient(160deg, var(--ac-navy) 0%, var(--ac-navy-2) 60%, #10275e 100%);
    display: flex;
    flex-direction: column;
    padding: 38px 52px;
}
.ac-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.ac-net .link { stroke: rgba(148, 197, 255, .18); stroke-width: 1.2; fill: none; }
.ac-net .pulse { stroke: url(#acPulse); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-dasharray: 26 420; animation: ac-flow 4.8s linear infinite; }
.ac-net .pulse.p2 { animation-duration: 6.2s; animation-delay: -1.4s; }
.ac-net .pulse.p3 { animation-duration: 5.4s; animation-delay: -3.1s; }
.ac-net .pulse.p4 { animation-duration: 7s; animation-delay: -2.2s; }
.ac-net .node { fill: #0b1f4a; stroke: rgba(103, 232, 249, .65); stroke-width: 1.6; }
.ac-net .node-glow { fill: rgba(34, 211, 238, .9); animation: ac-blink 2.8s ease-in-out infinite; }
.ac-net .node-glow.g2 { animation-delay: -.9s; }
.ac-net .node-glow.g3 { animation-delay: -1.8s; }
@keyframes ac-flow { from { stroke-dashoffset: 446; } to { stroke-dashoffset: 0; } }
@keyframes ac-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.ac-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.ac-logo {
    width: 54px; height: 54px; border-radius: 15px; background: #fff; padding: 5px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(6, 182, 212, .35);
}
.ac-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ac-name { font-size: 20px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; line-height: 1.15; }
.ac-sub { font-size: 12.5px; color: #8be9fd; font-weight: 500; letter-spacing: .5px; }
.ac-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #bfe9ff;
    padding: 6px 12px; border: 1px solid rgba(139, 233, 253, .3); border-radius: 30px; background: rgba(6, 182, 212, .08); }
.ac-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: ac-ping 1.8s infinite; }
@keyframes ac-ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.ac-hero { position: relative; z-index: 2; margin: auto 0; max-width: 560px; padding: 40px 0; }
.ac-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 30px; font-size: 12.5px; font-weight: 600;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e0f2fe; }
.ac-hero h1 { margin: 18px 0 12px; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.ac-hero h1 span { background: linear-gradient(90deg, #67e8f9, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-hero p { margin: 0; font-size: 15.5px; color: #c7d2fe; line-height: 1.65; }

.ac-services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.ac-service { display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.ac-service i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; }
.ac-service.s1 i { background: rgba(6, 182, 212, .18); color: #67e8f9; }
.ac-service.s2 i { background: rgba(124, 58, 237, .22); color: #c4b5fd; }
.ac-service.s3 i { background: rgba(20, 184, 166, .18); color: #5eead4; }
.ac-service.s4 i { background: rgba(37, 99, 235, .22); color: #93c5fd; }
.ac-service strong { display: block; font-size: 14px; font-weight: 700; }
.ac-service small { display: block; margin-top: 2px; font-size: 12.3px; color: #a5b4fc; line-height: 1.45; }

.ac-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #93a4d0; flex-wrap: wrap; }
.ac-foot i { margin-right: 5px; color: #67e8f9; }

/* ---------------- right: form ---------------- */
.ac-panel {
    flex: 1 1 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(6, 182, 212, .08), transparent 70%),
        #f7f9fd;
}
.ac-card { width: 100%; max-width: 430px; }
.ac-mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 26px; }
.ac-mobile-brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; padding: 4px; box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.ac-mobile-brand b { display: block; font-size: 16px; text-transform: uppercase; }
.ac-mobile-brand small { color: var(--ac-cyan); font-weight: 600; }

.ac-icon-badge { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
    background: linear-gradient(135deg, var(--ac-cyan), var(--ac-blue)); box-shadow: 0 12px 26px rgba(37, 99, 235, .3); }
.ac-card h2 { margin: 18px 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -.3px; }
.ac-card .ac-lead { margin: 0 0 26px; color: var(--ac-muted); font-size: 14.5px; }

.ac-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; font-size: 13.5px;
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ac-alert.ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.ac-alert i { font-size: 18px; margin-top: 1px; }

.ac-field { margin-bottom: 16px; }
.ac-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #334155; }
.ac-input { position: relative; }
.ac-input > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #94a3b8; pointer-events: none; transition: color .15s; }
.ac-input input {
    width: 100%; height: 50px; padding: 0 46px 0 46px;
    border: 1.5px solid var(--ac-line); border-radius: 13px; background: #fff;
    font: inherit; font-size: 14.5px; color: var(--ac-ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.ac-input input::placeholder { color: #a0aec0; }
.ac-input input:focus { border-color: var(--ac-cyan); box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
.ac-input:focus-within > i { color: var(--ac-cyan); }
.ac-input input.is-invalid { border-color: #f87171; }
.ac-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #94a3b8; font-size: 18px; cursor: pointer; }
.ac-eye:hover { background: #f1f5f9; color: #334155; }
.ac-err { margin-top: 6px; font-size: 12.5px; color: #dc2626; }
.ac-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ac-meta { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; font-size: 13px; }
.ac-check { display: inline-flex; align-items: center; gap: 8px; color: #475569; cursor: pointer; user-select: none; }
.ac-check input { width: 17px; height: 17px; accent-color: var(--ac-blue); }
.ac-meta a { color: var(--ac-blue); font-weight: 600; text-decoration: none; }

.ac-submit {
    width: 100%; height: 52px; border: 0; border-radius: 13px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font: inherit; font-size: 15.5px; font-weight: 700; color: #fff;
    background: linear-gradient(90deg, var(--ac-cyan) 0%, var(--ac-blue) 60%, var(--ac-violet) 130%);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .3); transition: transform .12s, box-shadow .12s, filter .12s;
}
.ac-submit:hover { filter: brightness(1.06); box-shadow: 0 16px 30px rgba(37, 99, 235, .36); }
.ac-submit:active { transform: translateY(1px); }
.ac-submit[disabled] { opacity: .7; cursor: wait; }

.ac-switch { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--ac-muted); }
.ac-switch a { color: var(--ac-blue); font-weight: 700; text-decoration: none; }
.ac-note { margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; font-size: 12.8px; display: flex; gap: 10px; }
.ac-note i { font-size: 18px; }

.ac-strength { display: flex; gap: 5px; margin-top: 8px; }
.ac-strength span { flex: 1; height: 5px; border-radius: 4px; background: #e2e8f0; transition: background .2s; }
.ac-strength-text { margin-top: 5px; font-size: 12px; color: var(--ac-muted); }

.ac-copy { margin-top: 30px; text-align: center; font-size: 12px; color: #94a3b8; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
    .ac-hero h1 { font-size: 33px; }
    .ac-services { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .ac-brand { display: none; }
    .ac-panel { padding: 30px 18px; align-items: flex-start; }
    .ac-mobile-brand { display: flex; }
}
@media (max-width: 420px) {
    .ac-row { grid-template-columns: 1fr; gap: 0; }
    .ac-card h2 { font-size: 23px; }
}
