html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* =====================================================
   HiSUP Professional University Preloader
===================================================== */

body.preloader-active {
    overflow: hidden;
}

/* Main preloader screen */

.hisup-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient( circle at 50% 32%, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.96) 38%, rgba(230, 242, 255, 0.96) 100% );
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

    /* Fade-out state */

    .hisup-preloader.preloader-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* Decorative dotted patterns */

.preloader-pattern {
    position: absolute;
    width: 220px;
    height: 220px;
    opacity: 0.18;
    background-image: radial-gradient( circle, #10a9dc 2px, transparent 2.5px );
    background-size: 17px 17px;
}

.pattern-left {
    top: -30px;
    left: -25px;
    mask-image: linear-gradient( 135deg, black, transparent 75% );
    -webkit-mask-image: linear-gradient( 135deg, black, transparent 75% );
}

.pattern-right {
    right: -30px;
    bottom: 30px;
    background-image: radial-gradient( circle, #05285c 2px, transparent 2.5px );
    mask-image: linear-gradient( -45deg, black, transparent 75% );
    -webkit-mask-image: linear-gradient( -45deg, black, transparent 75% );
}

/* Background glows */

.preloader-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    animation: preloaderGlowFloat 7s ease-in-out infinite;
}

.glow-yellow {
    width: 310px;
    height: 310px;
    top: -130px;
    left: -100px;
    background: rgba(240, 180, 0, 0.12);
}

.glow-blue {
    width: 390px;
    height: 390px;
    right: -160px;
    bottom: -150px;
    background: rgba(16, 169, 220, 0.14);
    animation-delay: 1.5s;
}

/* Main preloader content */

.hisup-preloader-content {
    position: relative;
    z-index: 5;
    width: min(92%, 650px);
    text-align: center;
    animation: preloaderContentEnter 0.9s ease both;
}

/* Logo orbit area */

.hisup-logo-area {
    position: relative;
    width: 310px;
    height: 260px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass circle behind logo */

.hisup-logo-glass {
    position: relative;
    z-index: 10;
    width: 175px;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 55px rgba(5, 40, 92, 0.18), 0 0 0 12px rgba(255, 255, 255, 0.38), 0 0 45px rgba(16, 169, 220, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: logoGlassPulse 2.4s ease-in-out infinite;
}

    /* Actual HITEC logo */

    .hisup-logo-glass img {
        width: 145px;
        height: 145px;
        display: block;
        object-fit: contain;
        border-radius: 50%;
        filter: drop-shadow( 0 8px 14px rgba(5, 40, 92, 0.17) );
    }

/* Circular orbit rings */

.logo-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-large {
    width: 300px;
    height: 165px;
    border: 2px solid rgba(5, 40, 92, 0.14);
    animation: orbitLargeRotate 7s linear infinite;
}

.orbit-medium {
    width: 245px;
    height: 205px;
    border: 2px solid transparent;
    border-top-color: rgba(16, 169, 220, 0.65);
    border-bottom-color: rgba(240, 180, 0, 0.45);
    animation: orbitMediumRotate 4.5s linear infinite;
}

.orbit-small {
    width: 205px;
    height: 205px;
    border: 1px dashed rgba(5, 40, 92, 0.24);
    animation: orbitSmallRotate 9s linear infinite;
}

/* Orbit particles */

.orbit-particle {
    position: absolute;
    z-index: 12;
    border-radius: 50%;
    box-shadow: 0 0 15px currentColor;
}

.particle-one {
    width: 15px;
    height: 15px;
    left: 23px;
    top: 116px;
    color: #0b6dcc;
    background: linear-gradient( 135deg, #65c8ff, #0058bd );
    animation: particlePulse 1.7s ease-in-out infinite;
}

.particle-two {
    width: 10px;
    height: 10px;
    top: 35px;
    right: 53px;
    color: #f0b400;
    background: #f0b400;
    animation: particlePulse 1.7s ease-in-out infinite 0.4s;
}

.particle-three {
    width: 8px;
    height: 8px;
    bottom: 35px;
    right: 33px;
    color: #10a9dc;
    background: #10a9dc;
    animation: particlePulse 1.7s ease-in-out infinite 0.8s;
}

.particle-four {
    width: 7px;
    height: 7px;
    bottom: 50px;
    left: 63px;
    color: #f0b400;
    background: #f0b400;
    animation: particlePulse 1.7s ease-in-out infinite 1.1s;
}

/* HiSUP title */

.hisup-preloader-brand h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 75px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.brand-hi {
    position: relative;
    color: #05285c;
}

    .brand-hi::after {
        content: "";
        position: absolute;
        width: 12px;
        height: 12px;
        top: -3px;
        right: 6px;
        border-radius: 2px;
        background: #f0b400;
        transform: skew(-18deg);
        box-shadow: 0 0 12px rgba(240, 180, 0, 0.45);
    }

.brand-sup {
    background: linear-gradient( 90deg, #0b6dcc, #10a9dc, #29bce7 );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Subtitle */

.brand-subtitle-row {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
}

    .brand-subtitle-row p {
        margin: 0;
        color: #05285c;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }

.subtitle-line {
    width: 60px;
    height: 2px;
    border-radius: 50px;
    background: linear-gradient( 90deg, transparent, #f0b400 );
}

    .subtitle-line:last-child {
        background: linear-gradient( 90deg, #f0b400, transparent );
    }

/* Progress bar */

.hisup-progress-wrapper {
    width: min(100%, 470px);
    margin: 35px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hisup-progress-track {
    position: relative;
    flex: 1;
    height: 13px;
    padding: 3px;
    overflow: hidden;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(5, 40, 92, 0.14);
    box-shadow: inset 0 2px 5px rgba(5, 40, 92, 0.08), 0 5px 14px rgba(5, 40, 92, 0.08);
}

.hisup-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient( 90deg, #0758bd 0%, #10a9dc 52%, #55d2ed 72%, #f0b400 100% );
    box-shadow: 0 0 16px rgba(16, 169, 220, 0.42);
    transition: width 0.22s ease;
}

.hisup-progress-number {
    min-width: 45px;
    color: #284b7a;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
}

/* Status text */

.preloader-status {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5f7390;
    font-size: 16px;
    font-weight: 500;
}

.status-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .status-dots i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #10a9dc;
        animation: statusDotBounce 1.2s ease-in-out infinite;
    }

        .status-dots i:nth-child(2) {
            animation-delay: 0.16s;
        }

        .status-dots i:nth-child(3) {
            animation-delay: 0.32s;
            background: #f0b400;
        }

/* Decorative campus silhouette */

.campus-shape {
    position: absolute;
    left: 50%;
    bottom: -35px;
    width: min(1100px, 100%);
    height: 150px;
    transform: translateX(-50%);
    opacity: 0.08;
}

.campus-building {
    position: absolute;
    bottom: 0;
    background: linear-gradient( 180deg, #05285c, #10a9dc );
    border-radius: 8px 8px 0 0;
}

.building-left {
    width: 250px;
    height: 110px;
    left: 3%;
}

.building-center {
    width: 350px;
    height: 140px;
    left: 50%;
    transform: translateX(-50%);
}

.building-right {
    width: 250px;
    height: 110px;
    right: 3%;
}

.campus-building::before {
    content: "";
    position: absolute;
    inset: 18px;
    background-image: repeating-linear-gradient( 90deg, rgba(255, 255, 255, 0.65) 0, rgba(255, 255, 255, 0.65) 9px, transparent 9px, transparent 20px );
}

/* Animations */

@keyframes orbitLargeRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbitMediumRotate {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes orbitSmallRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes logoGlassPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.045);
    }
}

@keyframes particlePulse {
    0%, 100% {
        transform: scale(0.75);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

@keyframes statusDotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@keyframes preloaderContentEnter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes preloaderGlowFloat {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 18px);
    }
}

/* Responsive */

@media (max-width: 650px) {

    .hisup-logo-area {
        width: 260px;
        height: 225px;
    }

    .hisup-logo-glass {
        width: 145px;
        height: 145px;
    }

        .hisup-logo-glass img {
            width: 120px;
            height: 120px;
        }

    .orbit-large {
        width: 255px;
        height: 140px;
    }

    .orbit-medium {
        width: 210px;
        height: 175px;
    }

    .orbit-small {
        width: 175px;
        height: 175px;
    }

    .hisup-preloader-brand h1 {
        letter-spacing: -2px;
    }

    .brand-subtitle-row {
        gap: 10px;
    }

        .brand-subtitle-row p {
            font-size: 13px;
        }

    .subtitle-line {
        width: 30px;
    }

    .hisup-progress-wrapper {
        width: 86%;
    }

    .preloader-status {
        font-size: 14px;
    }

    .campus-shape {
        display: none;
    }
}

@media (max-width: 400px) {

    .hisup-logo-area {
        transform: scale(0.88);
        margin-bottom: -5px;
    }

    .brand-subtitle-row p {
        font-size: 11px;
    }

    .subtitle-line {
        width: 20px;
    }

    .hisup-progress-wrapper {
        width: 90%;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .hisup-preloader *,
    .hisup-preloader *::before,
    .hisup-preloader *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}