﻿/* Digital Blue-Black Gradient Background */
html {
    overflow-x: hidden !important;
}

body {
    background: linear-gradient(135deg, #0a1929 0%, #1e3a8a 25%, #1e40af 50%, #1e3a8a 75%, #0a1929 100%);
    position: relative;
    overflow-x: hidden !important;
    overflow-y: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.digital-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #2563eb 50%, #1e3a8a 75%, #0f172a 100%);
}

/* Feature Icons Animation - Blue Tinted */
.feature-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.feature-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    color: rgba(147, 197, 253, 0.8);
    opacity: 0;
    transform: scale(0.5);
    animation: featureIconFloat 12s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* Symmetric Positions - 8 Icons */
.icon-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.icon-2 {
    top: 15%;
    right: 15%;
    animation-delay: -1.5s;
}

.icon-3 {
    top: 35%;
    left: 8%;
    animation-delay: -3s;
}

.icon-4 {
    top: 35%;
    right: 8%;
    animation-delay: -4.5s;
}

.icon-5 {
    bottom: 35%;
    left: 8%;
    animation-delay: -6s;
}

.icon-6 {
    bottom: 35%;
    right: 8%;
    animation-delay: -7.5s;
}

.icon-7 {
    bottom: 15%;
    left: 15%;
    animation-delay: -9s;
}

.icon-8 {
    bottom: 15%;
    right: 15%;
    animation-delay: -10.5s;
}

@keyframes featureIconFloat {
    0%, 85%, 100% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    10%, 75% {
        opacity: 0.7;
        transform: scale(1) translateY(0px);
    }

    40% {
        transform: scale(1.05) translateY(-5px);
    }
}

/* Moving Background Sections - Blue Gradient */
.moving-sections {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bg-section {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: moveSection 20s infinite ease-in-out;
}

.section-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.section-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #2563eb 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation-delay: -5s;
}

.section-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.section-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
    bottom: 10%;
    right: 20%;
    animation-delay: -15s;
}

.section-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -8s;
}

@keyframes moveSection {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* Animated Grid - Blue Tinted */
.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
    opacity: 0.6;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Digital Particles - Blue Glow */
.digital-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
    animation: particleFloat 20s infinite linear;
}

    .particle:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        left: 25%;
        animation-delay: -3s;
    }

    .particle:nth-child(3) {
        left: 40%;
        animation-delay: -6s;
    }

    .particle:nth-child(4) {
        left: 55%;
        animation-delay: -9s;
    }

    .particle:nth-child(5) {
        left: 70%;
        animation-delay: -12s;
    }

    .particle:nth-child(6) {
        left: 85%;
        animation-delay: -15s;
    }

    .particle:nth-child(7) {
        left: 15%;
        animation-delay: -18s;
    }

    .particle:nth-child(8) {
        left: 60%;
        animation-delay: -21s;
    }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(-10vh) scale(1);
    }

    100% {
        transform: translateY(-20vh) scale(0);
        opacity: 0;
    }
}

/* Circuit Lines - Blue Glow */
.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.circuit-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.7), transparent);
    animation: circuitMove 15s infinite linear;
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

    .circuit-line:nth-child(1) {
        top: 20%;
        width: 300px;
        animation-delay: 0s;
    }

    .circuit-line:nth-child(2) {
        top: 45%;
        width: 250px;
        animation-delay: -4s;
    }

    .circuit-line:nth-child(3) {
        top: 70%;
        width: 200px;
        animation-delay: -8s;
    }

    .circuit-line:nth-child(4) {
        top: 85%;
        width: 180px;
        animation-delay: -12s;
    }

@keyframes circuitMove {
    0% {
        left: -350px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: calc(100% + 50px);
        opacity: 0;
    }
}

/* Floating Elements - Blue Borders */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.08);
    animation: floatMove 30s infinite ease-in-out;
}

    .float-element:nth-child(1) {
        top: 15%;
        left: 10%;
        animation-delay: 0s;
        border-radius: 50%;
    }

    .float-element:nth-child(2) {
        top: 60%;
        left: 80%;
        animation-delay: -10s;
        transform: rotate(45deg);
    }

    .float-element:nth-child(3) {
        top: 80%;
        left: 20%;
        animation-delay: -20s;
        border-radius: 10px;
    }

@keyframes floatMove {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Login Card Styles */
.login-card {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

    .login-card h2 {
        color: #ffffff;
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
        font-weight: 600;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: rgba(59, 130, 246, 0.6);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        background: rgba(255, 255, 255, 0.15);
    }

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1e40af, #3b82f6);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.25rem;
}

    .password-toggle-btn:hover {
        color: rgba(255, 255, 255, 0.9);
    }

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.text-danger {
    color: #ef4444 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.text-primary {
    color: #60a5fa !important;
    text-decoration: none;
}

    .text-primary:hover {
        color: #93c5fd !important;
        text-decoration: underline;
    }

/* Alert Styles */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 350px;
    max-width: 500px;
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.fade-out {
    transition: opacity 1s ease-out;
    opacity: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .animated-grid {
        background-size: 40px 40px;
    }

    .particle {
        width: 2px;
        height: 2px;
    }

    .float-element {
        width: 40px;
        height: 40px;
    }

    .bg-section {
        filter: blur(60px);
    }

    .section-1,
    .section-2,
    .section-3,
    .section-4 {
        width: 200px;
        height: 200px;
    }

    .section-5 {
        width: 150px;
        height: 150px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .animated-grid {
        background-size: 50px 50px;
    }

    .bg-section {
        filter: blur(80px);
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}
