:root {
    /* Palette Assakinah: #6A7897, #AEB5C6, #DBDADA, #F2EDCA, #C0C3B2 */
    --color-primary-darkest: #2E3646;
    --color-primary-dark: #39445A;
    --color-primary-medium: #6A7897;
    --color-primary-light: #AEB5C6;
    --color-slate-silver: #DBDADA;
    --color-slate-gray: #6A7897;
    --color-cream: #F2EDCA;
    --color-sage: #C0C3B2;
    --color-amber: #C86D51;

    --navy: var(--color-primary-darkest);
    --blue: var(--color-primary-medium);
    --blue-2: var(--color-primary-dark);
    --pale: #F5F6F8;
    --ink: var(--color-primary-darkest);
    --muted: var(--color-slate-gray);
    --line: var(--color-slate-silver);
    --slate-light: var(--color-primary-light);
    --camel: var(--color-sage);
    --sand: var(--color-cream);
    --green: #2E7D5B;
    --amber: var(--color-amber);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body,
input,
button {
    font-family: Montserrat, Arial, sans-serif;
}

.auth-page {
    padding: 14px;
    color: var(--ink);
    background: radial-gradient(circle at 100% 100%, rgba(174, 181, 198, 0.35) 0, transparent 40%),
                radial-gradient(circle at 0% 0%, rgba(242, 237, 202, 0.45) 0, transparent 42%),
                #F5F6F8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, .98fr) minmax(520px, 1.02fr);
    width: min(1240px, 100%);
    min-height: calc(100vh - 28px);
    margin: auto;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(175, 179, 183, .45);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 25px 65px rgba(13, 31, 35, .15);
    animation: shell-in .65s cubic-bezier(.2, .8, .2, 1) both;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px 28px 12px;
}

.auth-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--navy);
    font-size: .78rem;
    letter-spacing: .07em;
}

.auth-brand>span:last-child {
    display: flex;
    flex-direction: column;
}

.auth-brand small {
    margin-top: 2px;
    color: var(--color-primary-medium);
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.brand-symbol,
.auth-badge {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--color-primary-darkest), var(--color-primary-dark));
    box-shadow: 0 10px 24px rgba(13, 31, 35, .25);
    border: 1.5px solid rgba(175, 179, 183, .4);
    border-radius: 50%;
}

.brand-symbol {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
}

.auth-form-box {
    width: min(430px, 100%);
    margin: auto;
    padding: 42px 0;
}

.auth-badge {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    animation: badge-float 4s ease-in-out infinite;
}

.auth-badge svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.auth-heading {
    text-align: center;
}

.auth-heading>span {
    color: var(--color-primary-medium);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.auth-heading h1 {
    margin: 8px 0;
    color: var(--color-primary-darkest);
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.auth-heading p {
    margin: 0 0 28px;
    color: var(--color-slate-gray);
    font-size: .78rem;
    line-height: 1.6;
}

.auth-alert {
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    font-size: .73rem;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--color-primary-darkest);
    font-size: .7rem;
    font-weight: 700;
}

.auth-field label b {
    color: var(--color-primary-medium);
}

.auth-input {
    position: relative;
}

.auth-input>svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 17px;
    height: 17px;
    pointer-events: none;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--color-primary-medium);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.auth-input input {
    width: 100%;
    height: 47px;
    padding: 10px 48px 10px 42px;
    border: 1px solid var(--color-slate-silver);
    border-radius: 10px;
    outline: 0;
    color: var(--color-primary-darkest);
    background: #f8fafb;
    font-size: .78rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input input::placeholder {
    color: var(--color-slate-gray);
    opacity: .75;
}

.auth-input input:focus {
    border-color: var(--color-primary-medium);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 74, 83, .16);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 7px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    color: var(--color-slate-gray);
    background: transparent;
}

.password-toggle:hover {
    color: var(--color-primary-darkest);
    background: #edf2f5;
}

.password-toggle svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary-darkest) 0%, var(--color-primary-dark) 50%, var(--color-primary-medium) 100%);
    box-shadow: 0 12px 25px rgba(13, 31, 35, .25);
    font-size: .78rem;
    font-weight: 700;
    transition: all .2s ease;
}

.auth-submit svg {
    width: 18px;
    margin-left: 9px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-medium) 60%, var(--color-primary-light) 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(45, 74, 83, .35);
}

.security-note {
    text-align: center;
    margin-top: 18px;
    color: var(--color-slate-gray);
    font-size: .6rem;
}

.security-note span {
    color: var(--color-primary-medium);
    font-size: .7rem;
}

.auth-footer {
    color: var(--color-slate-gray);
    font-size: .58rem;
}

.auth-visual-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    padding: 38px 42px 30px;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .98), rgba(242, 246, 248, .88) 40%, transparent 68%),
                linear-gradient(145deg, #e4ebf0, #f2f6f8 48%, #dfe6eb);
}

.auth-visual-panel::before,
.auth-visual-panel::after {
    position: absolute;
    z-index: -2;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    content: "";
    filter: blur(8px);
    opacity: .34;
}

.auth-visual-panel::before {
    top: -100px;
    right: -70px;
    background: rgba(45, 74, 83, .22);
    animation: blob 11s ease-in-out infinite;
}

.auth-visual-panel::after {
    bottom: -110px;
    left: -70px;
    background: rgba(105, 129, 141, .25);
    animation: blob 14s ease-in-out -5s infinite reverse;
}

.visual-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .28;
    background-image: linear-gradient(rgba(45, 74, 83, .1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(45, 74, 83, .1) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000, transparent 68%);
    animation: grid-move 22s linear infinite;
}

.visual-heading {
    text-align: center;
}

.visual-heading>span {
    color: var(--color-primary-medium);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.visual-heading h2 {
    margin: 9px 0 5px;
    color: var(--color-primary-darkest);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -.03em;
}

.visual-heading p {
    margin: 0;
    color: var(--color-slate-gray);
    font-size: .73rem;
    font-weight: 500;
}

.integration-orbit {
    position: relative;
    width: min(460px, 92%);
    height: 385px;
    margin: auto;
}

/* Garis-Garis Lingkaran Orbit */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
}

/* Ring 1 (Lingkaran Dalam): Bergerak ke KIRI (Berlawanan Arah Jarum Jam) */
.ring-one {
    width: 136px;
    height: 136px;
    border: 1.5px dashed rgba(45, 74, 83, 0.45);
    box-shadow: 0 0 0 1px rgba(175, 179, 183, 0.28);
    animation: orbit-spin-left 14s linear infinite;
}

/* Ring 2 (Lingkaran Tengah): Garis Pemandu Statis Halus */
.ring-two {
    width: 238px;
    height: 238px;
    border: 1px solid rgba(175, 179, 183, 0.35);
    transform: translate(-50%, -50%);
}

/* Ring 3 (Lingkaran Luar): Bergerak ke KANAN (Searah Jarum Jam) */
.ring-three {
    width: 350px;
    height: 350px;
    border: 1.5px dashed rgba(45, 74, 83, 0.45);
    box-shadow: 0 0 0 1px rgba(175, 179, 183, 0.28);
    animation: orbit-spin-right 20s linear infinite;
}

/* 2 Titik Lingkaran Kecil:
   Titik 1 pada ring-one (bergerak ke kiri dengan ring-one)
   Titik 2 pada ring-three (bergerak ke kanan dengan ring-three)
*/
.ring-one::after,
.ring-three::after {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    content: "";
    background: var(--color-primary-medium);
    box-shadow: 0 0 0 7px rgba(105, 129, 141, 0.28), 0 0 14px rgba(45, 74, 83, 0.4);
    animation: dot-glow 3s ease-in-out infinite alternate;
}

/* Pusat Orbit (Logo Tengah) */
.orbit-center {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 6px solid rgba(255, 255, 255, .92);
    border-radius: 50%; /* Border bulat */
    color: #fff;
    background: linear-gradient(145deg, var(--color-primary-darkest), var(--color-primary-medium));
    box-shadow: 0 20px 45px rgba(13, 31, 35, .28), 0 0 0 1px rgba(175, 179, 183, .35);
}

.orbit-center strong {
    margin-bottom: -18px;
    font-size: 1.8rem;
}

.orbit-center small {
    font-size: .4rem;
    font-weight: 700;
    letter-spacing: .1em;
}

/* Icon-Icon Modul: BORDER BULAT & Palet Warna */
.module-icon {
    position: absolute;
    z-index: 5;
    display: grid;
    width: 58px;
    height: 58px;
    padding: 10px;
    place-items: center;
    border: 1.5px solid rgba(175, 179, 183, .5);
    border-radius: 50%; /* Border bulat sempurna */
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 26px rgba(13, 31, 35, .1);
    animation: icon-float 4.6s ease-in-out infinite;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.module-icon:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 14px 32px rgba(13, 31, 35, .18);
    transform: translateY(-4px) scale(1.06);
}

.module-icon svg {
    width: 27px;
    height: 27px;
}

.module-icon small {
    position: absolute;
    top: 62px;
    padding: 3px 8px;
    border-radius: 20px;
    color: var(--color-primary-darkest);
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(175, 179, 183, .5);
    font-size: .46rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: .2s;
    box-shadow: 0 4px 12px rgba(13, 31, 35, .08);
}

.module-icon:hover small {
    opacity: 1;
    transform: none;
}

.icon-google {
    top: 44%;
    left: 2%;
    animation-delay: -.2s;
}

.icon-drive {
    top: 8%;
    left: 42%;
    animation-delay: -1.1s;
}

.icon-sheet {
    top: 25%;
    right: 6%;
    animation-delay: -2s;
}

.icon-doc {
    right: 13%;
    bottom: 11%;
    animation-delay: -3.1s;
}

.icon-education {
    bottom: 1%;
    left: 42%;
    animation-delay: -1.7s;
}

.icon-bank {
    bottom: 14%;
    left: 10%;
    animation-delay: -2.5s;
}

.icon-asset {
    top: 18%;
    left: 15%;
    animation-delay: -3.6s;
}

.visual-caption {
    display: flex;
    gap: 13px;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-gray);
    font-size: .58rem;
    font-weight: 500;
}

.visual-caption span {
    white-space: nowrap;
}

.visual-caption b {
    color: var(--color-primary-darkest);
    font-size: .72rem;
    font-weight: 800;
}

.visual-caption i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary-medium);
}

/* Animations */
@keyframes shell-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.987);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes badge-float {
    50% {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(13, 31, 35, .32), 0 0 16px rgba(105, 129, 141, .3);
    }
}

@keyframes icon-float {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-9px) rotate(1.5deg);
    }
}

@keyframes blob {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-25px, 22px, 0) scale(1.13);
    }
}

@keyframes grid-move {
    to {
        background-position: 48px 48px;
    }
}

/* Pergerakan Garis Lingkaran dan Titik ke Kiri (Counter-Clockwise) */
@keyframes orbit-spin-left {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Pergerakan Garis Lingkaran dan Titik ke Kanan (Clockwise) */
@keyframes orbit-spin-right {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Efek Pulsasi Halus pada Titik Lingkaran */
@keyframes dot-glow {
    0% {
        box-shadow: 0 0 0 6px rgba(105, 129, 141, 0.22), 0 0 12px rgba(45, 74, 83, 0.35);
    }
    100% {
        box-shadow: 0 0 0 9px rgba(105, 129, 141, 0.35), 0 0 18px rgba(45, 74, 83, 0.55);
    }
}

@media(max-width:900px) {
    .auth-shell {
        grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr);
    }

    .auth-form-panel {
        padding-inline: 22px;
    }

    .auth-visual-panel {
        padding-inline: 24px;
    }

    .integration-orbit {
        transform: scale(.9);
    }
}

@media(max-width:760px) {
    .auth-page {
        padding: 0;
        background: #fff;
    }

    .auth-shell {
        display: block;
        min-height: 100vh;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 22px;
    }

    .auth-form-box {
        padding: 45px 0 30px;
    }

    .auth-visual-panel {
        display: none;
    }

    .auth-footer {
        text-align: center;
    }
}

@media(prefers-reduced-motion:reduce) {
    .auth-shell,
    .auth-badge,
    .module-icon,
    .auth-visual-panel::before,
    .auth-visual-panel::after,
    .visual-grid,
    .ring-one,
    .ring-three,
    .ring-one::after,
    .ring-three::after {
        animation: none !important;
    }
}