@font-face {
  font-family: 'SAOUI';
  src: url('../fonts/SAOUI-Regular.otf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SAOUI';
  src: url('../fonts/SAOUI-Bold.otf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'SAOUITT';
  src: url('../fonts/SAOUITT-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SAOUITT';
  src: url('../fonts/SAOUITT-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'SAOWelcome';
  src: url('../fonts/SAOWelcome-Regular.otf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SAOWelcome';
  src: url('../fonts/SAOWelcome-Bold.otf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'SAOWelcomeTT';
  src: url('../fonts/SAOWelcomeTT-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SAOWelcomeTT';
  src: url('../fonts/SAOWelcomeTT-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
    --bg-top: #11375d;
    --bg-mid: #07142d;
    --bg-bottom: #020813;

    --cyan: #00ddff;
    --cyan-soft: rgba(0, 221, 255, 0.35);
    --cyan-strong: rgba(0, 221, 255, 0.8);

    --pink: #ff00de;
    --text: #bffcff;
    --white: #ffffff;

    --panel-bg: rgba(7, 15, 35, 0.72);
    --panel-border: rgba(0, 221, 255, 0.4);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

body {
    font-family: "Orbitron", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
    position: relative;
}

button,
input {
    font: inherit;
}

.screen {
    position: relative;
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.bg-image {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(300px, 60vw);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 20px rgba(0, 221, 255, 0.5)) blur(0.5px);
}

.nebula {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background:
    radial-gradient(ellipse at 30% 30%, rgba(63, 0, 113, 0.3) 0%, rgba(63, 0, 113, 0) 70%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 113, 167, 0.3) 0%, rgba(0, 113, 167, 0) 70%),
    radial-gradient(ellipse at 50% 50%, rgba(167, 0, 157, 0.2) 0%, rgba(167, 0, 157, 0) 70%);
    filter: blur(30px);
    opacity: 0.5;
    animation: nebula-shift 30s infinite alternate ease-in-out;
    pointer-events: none;
}

.grid-plane {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
    linear-gradient(rgba(0, 162, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 162, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center;
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

.stars-container {
    position: absolute;
    inset: 0;
    perspective: 500px;
    transform-style: preserve-3d;
    pointer-events: none;
}

.star-layer {
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

.star-layer:nth-child(1) {
    animation: star-drift 150s linear infinite;
}

.star-layer:nth-child(2) {
    animation: star-drift 200s linear infinite reverse;
    opacity: 0.6;
}

.star-layer:nth-child(3) {
    animation: star-drift 250s linear infinite;
    opacity: 0.4;
}

.star-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
    radial-gradient(1px 1px at 10% 10%, white 100%, transparent),
    radial-gradient(1px 1px at 20% 20%, white 100%, transparent),
    radial-gradient(2px 2px at 30% 30%, white 100%, transparent),
    radial-gradient(1px 1px at 40% 40%, white 100%, transparent),
    radial-gradient(2px 2px at 50% 50%, white 100%, transparent),
    radial-gradient(1px 1px at 60% 60%, white 100%, transparent),
    radial-gradient(2px 2px at 70% 70%, white 100%, transparent),
    radial-gradient(1px 1px at 80% 80%, white 100%, transparent),
    radial-gradient(2px 2px at 90% 90%, white 100%, transparent),
    radial-gradient(1px 1px at 15% 85%, white 100%, transparent);
}

.button-container {
    position: relative;
    z-index: 5;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.button-container.hide-start {
    transform: scale(0.92);
    opacity: 0;
    pointer-events: none;
    filter: blur(6px);
}

.button-hexagons {
    position: absolute;
    width: 1000px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hexagon {
    position: absolute;
     width: 60px;      /* dari 30px → 60px */
    height: 34.64px;
    background: transparent;
    border: 1.5px solid rgba(0, 221, 255, 0.3);
    transform: rotate(30deg);
    opacity: 0;
    animation: hexagon-pulse 3s infinite;
}

.hexagon::before,
.hexagon::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(0, 221, 255, 0.3);
}

.hexagon::before { transform: rotate(60deg); }
.hexagon::after { transform: rotate(-60deg); }

.hexagon:nth-child(1) { top: 20px; left: 20px; animation-delay: 0.1s; }
.hexagon:nth-child(2) { top: 20px; right: 20px; animation-delay: 0.3s; }
.hexagon:nth-child(3) { bottom: 20px; left: 20px; animation-delay: 0.5s; }
.hexagon:nth-child(4) { bottom: 20px; right: 20px; animation-delay: 0.7s; }
.hexagon:nth-child(5) { top: 50%; left: 0; transform: translate(0, -50%) rotate(30deg); animation-delay: 0.9s; }
.hexagon:nth-child(6) { top: 50%; right: 0; transform: translate(0, -50%) rotate(30deg); animation-delay: 1.1s; }

.holo-button {
    position: relative;
    bottom: -50px;
    padding: 20px 34px;
    min-width: 250px;
    background: rgba(10, 10, 30, 0.3);
    border: none;
    color: rgba(0, 221, 255, 0.8);
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 221, 255, 0.5);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    outline: none;
    z-index: 5;
    border-radius: 4px;
}

.holo-button::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(
    45deg,
    rgba(0, 0, 40, 0.8) 0%,
    rgba(0, 20, 50, 0.8) 50%,
    rgba(5, 10, 30, 0.8) 100%
    );
    z-index: -1;
    border-radius: 2px;
}

.holo-button:hover {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}

.holo-button:active {
    transform: scale(0.98);
}

.button-text {
    position: relative;
    z-index: 3;
    text-transform: uppercase;
}

.holo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(
    ellipse at center,
    rgba(0, 221, 255, 0.2) 0%,
    rgba(0, 0, 0, 0) 70%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
    filter: blur(10px);
    animation: glow-pulse 3s infinite alternate;
}

.corner-accents,
.holo-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.corner-accent {
    position: absolute;
    width: 15px;
    height: 15px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(0, 221, 255, 0.7);
}

.corner-accent:nth-child(1) {
    top: 0; left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-accent:nth-child(2) {
    top: 0; right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-accent:nth-child(3) {
    bottom: 0; left: 0;
    border-right: none;
    border-top: none;
}

.corner-accent:nth-child(4) {
    bottom: 0; right: 0;
    border-left: none;
    border-top: none;
}

.holo-line {
    position: absolute;
    background: rgba(0, 221, 255, 0.5);
    filter: blur(1px);
    animation: line-pulse 2s infinite alternate;
}

.holo-line:nth-child(1) {
    top: 0; left: 30px;
    width: 1.5px; height: 100%;
    animation-delay: -0.5s;
}

.holo-line:nth-child(2) {
    top: 0; right: 30px;
    width: 1.5px; height: 100%;
    animation-delay: -1s;
}

.holo-line:nth-child(3) {
    top: 15px; left: 0;
    width: 100%; height: 1.5px;
    animation-delay: -1.5s;
}

.holo-line:nth-child(4) {
    bottom: 15px; left: 0;
    width: 100%; height: 1.5px;
    animation-delay: -2s;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,221,255,0.5) 20%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,0,222,0.5) 80%,
    rgba(0,0,0,0) 100%
    );
    top: 0;
    left: 0;
    filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    animation: scan 2s infinite;
}

.holo-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.holo-particle {
    position: absolute;
    background: white;
    box-shadow: 0 0 10px rgba(0, 221, 255, 0.7);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: particle-float 3s infinite ease-out;
}

.holo-particle:nth-child(1) { width: 3px; height: 3px; top: 70%; left: 30%; animation-delay: 0.2s; }
.holo-particle:nth-child(2) { width: 2px; height: 2px; top: 60%; left: 40%; animation-delay: 0.5s; }
.holo-particle:nth-child(3) { width: 4px; height: 4px; top: 80%; left: 60%; animation-delay: 0.8s; }
.holo-particle:nth-child(4) { width: 2px; height: 2px; top: 70%; left: 70%; animation-delay: 1.1s; }
.holo-particle:nth-child(5) { width: 3px; height: 3px; top: 75%; left: 50%; animation-delay: 1.4s; }
.holo-particle:nth-child(6) { width: 2px; height: 2px; top: 65%; left: 65%; animation-delay: 1.7s; }

.login-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(2, 8, 19, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.login-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.login-panel {
    position: relative;
    width: min(500px, 92vw);
    min-height: 320px;
    padding: 32px 26px 28px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow:
    0 0 30px rgba(0, 221, 255, 0.18),
    inset 0 0 25px rgba(0, 221, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.login-modal.show .login-panel {
    transform: scale(1) translateY(0);
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 8px;
    background: linear-gradient(
    45deg,
    rgba(0, 0, 40, 0.8) 0%,
    rgba(0, 20, 50, 0.78) 50%,
    rgba(5, 10, 30, 0.88) 100%
    );
    z-index: -1;
}

.login-corners span {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 221, 255, 0.7);
    pointer-events: none;
}

.login-corners span:nth-child(1) {
    top: 10px; left: 10px;
    border-right: none; border-bottom: none;
}
.login-corners span:nth-child(2) {
    top: 10px; right: 10px;
    border-left: none; border-bottom: none;
}
.login-corners span:nth-child(3) {
    bottom: 10px; left: 10px;
    border-right: none; border-top: none;
}
.login-corners span:nth-child(4) {
    bottom: 10px; right: 10px;
    border-left: none; border-top: none;
}

.login-title {
    text-align: center;
    font-size: 34px;
    letter-spacing: 4px;
    margin: 0 0 10px;
    color: var(--text);
    text-shadow: 0 0 12px rgba(0, 221, 255, 0.35);
}

.sao-text {
    text-align: center;
    margin-bottom: 22px;
    font-size: 13px;
    letter-spacing: 3px;
    color: #7df9ff;
    text-shadow: 0 0 8px #00eaff;
    opacity: 0.9;
    min-height: 18px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.login-form input {
    width: 100%;
    padding: 13px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 221, 255, 0.45);
    color: var(--text);
    text-align: center;
    outline: none;
    border-radius: 6px;
    letter-spacing: 1px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.login-form input:focus {
    border-color: rgba(0, 221, 255, 0.9);
    box-shadow: 0 0 14px rgba(0, 221, 255, 0.15);
}

.login-form input::placeholder {
    color: rgba(0, 221, 255, 0.5);
}

.login-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.login-btn,
.close-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(0, 221, 255, 0.7);
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    letter-spacing: 2px;
    transition: 0.25s ease;
}

.login-btn:hover,
.close-btn:hover {
    background: rgba(0, 221, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 221, 255, 0.12);
}

.login-status {
    min-height: 22px;
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 2px;
}

.login-status.success {
    color: #00ffcc;
    text-shadow: 0 0 10px #00ffcc;
}

.login-status.error {
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055;
}

.login-panel.sao-success {
    border-color: #00eaff;
    box-shadow:
    0 0 20px #00eaff,
    inset 0 0 10px #00eaff;
}

.login-panel.shake {
    animation: shake 0.4s ease;
}

.sao-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.sao-overlay.active::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00eaff;
    box-shadow: 0 0 10px #00eaff;
    top: -10px;
    animation: sao-scan 1s linear;
}

@keyframes nebula-shift {
    0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.2) rotate(5deg); opacity: 0.4; }
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

@keyframes star-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

@keyframes glow-pulse {
    0% { opacity: 0.4; filter: blur(10px) brightness(0.8); }
    100% { opacity: 0.7; filter: blur(15px) brightness(1.2); }
}

@keyframes line-pulse {
    0% { opacity: 0.3; background: rgba(0, 221, 255, 0.5); }
    100% { opacity: 0.7; background: rgba(255, 0, 222, 0.5); }
}

@keyframes scan {
    0% { top: -5px; opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { top: 85px; opacity: 0; }
}

@keyframes particle-float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-40px) rotate(360deg); opacity: 0; }
}

@keyframes hexagon-pulse {
    0% { opacity: 0; transform: rotate(30deg) scale(0.8); }
    20% { opacity: 0.5; transform: rotate(30deg) scale(1); }
    80% { opacity: 0.5; transform: rotate(30deg) scale(1); }
    100% { opacity: 0; transform: rotate(30deg) scale(1.2); }
}

@keyframes sao-scan {
    0% { top: -10px; }
    100% { top: 100%; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@media (max-width: 600px) {
    .holo-button {
    min-width: auto;
    width: 84vw;
    font-size: 20px;
    }

    .button-container {
    transform: scale(0.95);
    }

    .login-title {
    font-size: 26px;
    }

    .login-actions {
    flex-direction: column;
    }

    .button-hexagons {
    display: none;
    }

    .bg-image{
        top: 35%;
        width: min(400px, 350vw);
    }
}