﻿:root {
    --primary-blue: #0066cc;
    --secondary-teal: #00a693;
    --accent-green: #28a745;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-dark: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    /*    background: var(--gradient-bg);*/
    background: #d7d1d1;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    margin: 0;
    padding: 0;
}

    /* Hide scrollbars completely */
    body::-webkit-scrollbar {
        display: none;
    }

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    *::-webkit-scrollbar {
        display: none;
    }

/* Animated background medical equipment */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.medical-equipment {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    animation: float 8s ease-in-out infinite;
    font-size: 24px;
}

    .medical-equipment:nth-child(1) {
        left: 8%;
        animation-delay: 0s;
        font-size: 20px;
    }

    .medical-equipment:nth-child(2) {
        left: 18%;
        animation-delay: 1.5s;
        font-size: 28px;
    }

    .medical-equipment:nth-child(3) {
        left: 28%;
        animation-delay: 3s;
        font-size: 22px;
    }

    .medical-equipment:nth-child(4) {
        left: 38%;
        animation-delay: 4.5s;
        font-size: 26px;
    }

    .medical-equipment:nth-child(5) {
        left: 48%;
        animation-delay: 6s;
        font-size: 24px;
    }

    .medical-equipment:nth-child(6) {
        left: 58%;
        animation-delay: 1s;
        font-size: 30px;
    }

    .medical-equipment:nth-child(7) {
        left: 68%;
        animation-delay: 2.5s;
        font-size: 20px;
    }

    .medical-equipment:nth-child(8) {
        left: 78%;
        animation-delay: 4s;
        font-size: 25px;
    }

    .medical-equipment:nth-child(9) {
        left: 88%;
        animation-delay: 5.5s;
        font-size: 23px;
    }

    .medical-equipment:nth-child(10) {
        left: 12%;
        animation-delay: 7s;
        font-size: 27px;
    }

    .medical-equipment:nth-child(11) {
        left: 72%;
        animation-delay: 0.5s;
        font-size: 21px;
    }

    .medical-equipment:nth-child(12) {
        left: 35%;
        animation-delay: 3.5s;
        font-size: 29px;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }

    25% {
        transform: translateY(75vh) rotate(90deg);
        opacity: 0.8;
    }

    50% {
        transform: translateY(40vh) rotate(180deg);
        opacity: 1;
    }

    75% {
        transform: translateY(10vh) rotate(270deg);
        opacity: 0.6;
    }
}

/* Additional floating animation for variety */
.medical-equipment:nth-child(even) {
    animation: floatReverse 8s ease-in-out infinite;
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }

    25% {
        transform: translateY(20vh) rotate(270deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(60vh) rotate(180deg);
        opacity: 1;
    }

    75% {
        transform: translateY(90vh) rotate(90deg);
        opacity: 0.8;
    }
}

/* Main container */
.main-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

/* Glass morphism card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header section */
.header-section {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 55px;
    height: 55px;
    background: linear-gradient(45deg, var(--accent-green), var(--secondary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 10px 30px rgba(0, 166, 147, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.logo i {
    font-size: 25px;
    color: white;
}

.brand-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 6px;
}

.brand-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Form styling */
.form-floating {
    margin-bottom: 12px;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--secondary-teal);
        box-shadow: 0 0 0 3px rgba(0, 166, 147, 0.25);
        color: white;
    }

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

.form-floating label {
    /*color: rgba(255, 255, 255, 0.8);*/
    font-size: 0.9rem;
}

/* Button styling */
.btn-login {
    background: linear-gradient(45deg, var(--secondary-teal), var(--accent-green));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px;
    width: 100%;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 166, 147, 0.3);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 166, 147, 0.4);
        color: white;
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* Additional options */
.additional-options {
    margin-top: 15px;
    text-align: center;
}

.divider {
    position: relative;
    margin: 12px 0;
    text-align: center;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
    }

    .divider span {
        background: var(--glass-bg);
        padding: 0 15px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
    }

.link-light {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

    .link-light:hover {
        color: var(--secondary-teal) !important;
    }

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.footer-logo {
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, var(--accent-green), var(--secondary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 166, 147, 0.3);
}

    .footer-logo i {
        font-size: 12px;
        color: white;
    }

.footer-links {
    display: flex;
    gap: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 3px 6px;
    border-radius: 4px;
}

    .footer-link:hover {
        color: var(--secondary-teal) !important;
        background: rgba(255, 255, 255, 0.1);
    }

.footer-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

/* Responsive design */
@media (max-width: 576px) {
    .login-card {
        padding: 18px;
        margin: 8px;
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 100px);
    }

    .brand-title {
        font-size: 1.4rem;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

        .logo i {
            font-size: 20px;
        }

    .footer-content {
        flex-direction: column;
        gap: 4px;
    }

    .footer-left {
        order: 2;
        font-size: 0.7rem;
    }

    .footer-right {
        order: 1;
        justify-content: center;
        font-size: 0.65rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .footer-separator {
        display: none;
    }

    .main-container {
        padding: 8px;
        bottom: 80px;
    }

    .footer {
        height: 80px;
        padding: 6px 8px;
    }
}

/* Loading animation */
.btn-loading {
    position: relative;
    pointer-events: none;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}