/* ==============================================================================
   GPS SATELLITE FLEET TRACKING - ANIMATED LOGIN STYLES
   ============================================================================== */

/* Base Layout & Dynamic Background */
body.sign-in-layout {
    position: relative;
    min-height: 100vh;
    background-color: #060913 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Vignette and Dark Tech Ambience Overlay */
body.sign-in-layout::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 75% 25%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
                linear-gradient(180deg, rgba(6, 9, 19, 0.45) 0%, rgba(6, 9, 19, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle High-Tech Grid Scanlines */
body.sign-in-layout::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.18) 3px,
        rgba(0, 0, 0, 0.18) 4px
    );
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

/* Animated GPS Canvas */
#gps-tracking-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
}

/* High-Tech HUD Overlays */
.gps-hud-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    font-family: "Courier New", Courier, monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: rgba(56, 189, 248, 0.85);
    user-select: none;
}

.gps-hud-top-left {
    position: absolute;
    top: 24px;
    left: 28px;
    background: rgba(10, 18, 32, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-left: 3px solid #38bdf8;
    padding: 10px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.5;
}

.gps-hud-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.5);
    padding: 1px 6px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 10px;
    margin-right: 6px;
    animation: gpsPulse 2s infinite ease-in-out;
}

.gps-hud-top-right {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(10, 18, 32, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-right: 3px solid #f97316;
    padding: 10px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: right;
    line-height: 1.5;
    color: rgba(254, 215, 170, 0.9);
}

.gps-hud-bottom-left {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: rgba(148, 163, 184, 0.7);
    font-size: 10px;
    line-height: 1.6;
}

.gps-hud-bottom-right {
    position: absolute;
    bottom: 24px;
    right: 28px;
    color: rgba(56, 189, 248, 0.65);
    font-size: 10px;
    text-align: right;
}

@keyframes gpsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.97); }
}

/* Center Form Container & Vertical Centering */
body.sign-in-layout .center-vertical {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Login Panel */
body.sign-in-layout .panel {
    position: relative;
    background: rgba(12, 21, 38, 0.78) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(56, 189, 248, 0.32) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.75),
                0 0 35px rgba(14, 165, 233, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    overflow: hidden;
    transition: all 0.35s ease;
}

body.sign-in-layout .panel:hover {
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 30px 75px -10px rgba(0, 0, 0, 0.8),
                0 0 50px rgba(14, 165, 233, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Futuristic Card Header Accent Line */
body.sign-in-layout .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #f97316, transparent);
    z-index: 5;
}

/* Disable old opacity/background overlay */
body.sign-in-layout .panel-background {
    display: none !important;
}

body.sign-in-layout .panel-body {
    position: relative;
    z-index: 2;
    padding: 34px 30px 28px !important;
}

/* Sign-in Headings & Texts */
body.sign-in-layout .sign-in-text {
    color: #f8fafc !important;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.4);
    letter-spacing: 0.5px;
}

body.sign-in-layout h1.sign-in-text {
    font-size: 26px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Logo enhancement */
body.sign-in-layout .panel-body img.img-responsive {
    max-height: 58px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
    transition: transform 0.3s ease;
}

body.sign-in-layout .panel-body img.img-responsive:hover {
    transform: scale(1.03);
}

/* Horizontal Divider */
body.sign-in-layout hr {
    border-top: 1px solid rgba(56, 189, 248, 0.18) !important;
    margin: 22px 0;
}

/* Form Input Controls */
body.sign-in-layout .form-control {
    background-color: rgba(7, 13, 26, 0.72) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 9px !important;
    color: #f1f5f9 !important;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.25s ease;
}

body.sign-in-layout .form-control:focus {
    background-color: rgba(10, 20, 40, 0.9) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    outline: none;
    color: #ffffff !important;
}

body.sign-in-layout .form-control::placeholder {
    color: rgba(148, 163, 184, 0.65) !important;
}

/* Form Groups & Labels */
body.sign-in-layout .form-group {
    margin-bottom: 18px;
}

body.sign-in-layout label,
body.sign-in-layout .checkbox label {
    color: #cbd5e1 !important;
    font-size: 13px;
    font-weight: 500;
}

/* Checkbox */
body.sign-in-layout .checkbox label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #f97316;
}

/* Action Links (Forgot Password, Registration) */
body.sign-in-layout a {
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.sign-in-layout a:hover,
body.sign-in-layout a:focus {
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* High-Impact Animated Login Submit Button */
body.sign-in-layout .btn-primary,
body.sign-in-layout .btn-success,
body.sign-in-layout button[type="submit"],
body.sign-in-layout input[type="submit"] {
    position: relative;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%) !important;
    border: 1px solid rgba(251, 146, 60, 0.6) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    height: 46px;
    border-radius: 9px !important;
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

body.sign-in-layout .btn-primary:hover,
body.sign-in-layout .btn-success:hover,
body.sign-in-layout button[type="submit"]:hover,
body.sign-in-layout input[type="submit"]:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%) !important;
    box-shadow: 0 6px 26px rgba(249, 115, 22, 0.65), 0 0 18px rgba(249, 115, 22, 0.4) !important;
    transform: translateY(-1px);
}

/* Button Shimmer Effect */
body.sign-in-layout .btn-primary::after,
body.sign-in-layout button[type="submit"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    animation: btnShimmer 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes btnShimmer {
    0% { left: -75%; }
    30% { left: 130%; }
    100% { left: 130%; }
}

/* App Download Links */
body.sign-in-layout .app-links {
    margin-top: 18px;
}

body.sign-in-layout .app-links img {
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

body.sign-in-layout .app-links img:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.5);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .gps-hud-top-left,
    .gps-hud-top-right,
    .gps-hud-bottom-left,
    .gps-hud-bottom-right {
        display: none !important;
    }

    body.sign-in-layout .panel-body {
        padding: 24px 18px !important;
    }
}
