@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("login_assets/webfonts/raleway-400.ttf") format("truetype");
}
@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("login_assets/webfonts/raleway-700.ttf") format("truetype");
}

*, *:before, *:after { box-sizing: border-box; }

body {
    margin: 0px !important;
    min-height: 100vh;
    font-family: "Raleway", sans-serif;
}

/* High-Definition Cyber Grid Background (3D Perspective) */
.cyber-grid-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    perspective: 1000px;
    z-index: 0;
}

.cyber-grid-plane {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(to right, rgba(20, 184, 166, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20, 184, 166, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: rotateX(60deg);
    animation: grid-scroll 20s linear infinite;
}

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

/* Vertical Laser Sweep Effect */
.grid-laser-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #14b8a6, #6366f1, transparent);
    box-shadow: 0 0 15px #14b8a6, 0 0 30px #14b8a6;
    animation: laser-sweep 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes laser-sweep {
    0% { top: -10%; opacity: 0; }
    50% { opacity: 0.8; }
    100% { top: 110%; opacity: 0; }
}

/* Ambient rotating gradient glow */
@keyframes rotate-glow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

.animate-rotate-glow { animation: rotate-glow 14s linear infinite; }

/* Entrance slide and fade sequence */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-1 { animation: fadeUp 0.6s ease-out forwards; }
.animate-fade-2 { animation: fadeUp 0.6s ease-out 0.15s forwards; opacity: 0; }
.animate-fade-3 { animation: fadeUp 0.6s ease-out 0.3s forwards; opacity: 0; }

/* Animated ECG Pulse Line */
@keyframes pulse-line {
    0% { stroke-dashoffset: 400; }
    100% { stroke-dashoffset: 0; }
}

.ecg-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: pulse-line 3s linear infinite;
}

.p-3 {
    padding: 0.5rem !important;
}

.px-4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Main logo — fixed height */
.login-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Custom Neon Glow on Textbox Focus */
.neon-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow:
        0 0 10px rgba(20, 184, 166, 0.6),
        0 0 20px rgba(20, 184, 166, 0.3),
        inset 0 0 5px rgba(20, 184, 166, 0.2);
}
