* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: ltr;
    position: relative;
    overflow-y: scroll;
}

.background-icons {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.background-icons::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('assets/blood.png'),
        url('assets/blood-test.png'),
        url('assets/flask.png'),
        url('assets/microscope.png'),
        url('assets/observation.png');
    background-size: 30px 30px;
    background-repeat: space;
    animation: floatBackground 60s linear infinite;
}

@keyframes floatBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.6;
    z-index: 0;
}

.floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-icon:nth-child(1) {
    top: 10%;
    right: 10%;
    animation: float1 8s infinite ease-in-out;
}

.floating-icon:nth-child(2) {
    top: 20%;
    left: 15%;
    animation: float2 10s infinite ease-in-out;
}

.floating-icon:nth-child(3) {
    bottom: 15%;
    right: 20%;
    animation: float3 7s infinite ease-in-out;
}

.floating-icon:nth-child(4) {
    bottom: 25%;
    left: 10%;
    animation: float4 9s infinite ease-in-out;
}

.floating-icon:nth-child(5) {
    top: 50%;
    right: 5%;
    animation: float5 11s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -15px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, 10px) rotate(-5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, 15px) rotate(3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, -10px) rotate(-3deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12px, 12px) rotate(4deg); }
}

.container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 500px;
    max-width: 90%;
}

.logo-container {
    text-align: center;
    /*margin-bottom: 2rem;*/
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: logoAnimation 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 119, 182, 0.3));
}

@keyframes logoAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

h1 {
    color: #0077be;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #0077b6, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleGlow 3s ease-in-out infinite;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0077b6, transparent);
    border-radius: 2px;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(0, 119, 182, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 119, 182, 0.5));
    }
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #0077b6;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 7px;
    top: -10px;
    padding: 0 5px;
    font-size: 14px;
    transform: translateY(-50%);
    background: white;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

/*.input-group input:focus + label,*/
/*.input-group input:not(:placeholder-shown) + label {*/
/*    top: -10px;*/
/*    left: 10px;*/
/*    background: white;*/
/*    padding: 0 5px;*/
/*    font-size: 14px;*/
/*    color: #0077b6;*/
/*}*/

button {
    width: 100%;
    padding: 12px;
    background: #0077be;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #005b8c;
    transform: translateY(-2px);
}

.decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.decoration-1 {
    top: -100px;
    right: -100px;
}

.decoration-2 {
    bottom: -100px;
    left: -100px;
}

.subtitle {
    color: #555;
    text-align: center;
    margin: -1rem 0 2rem;
    font-size: 1.2rem;
}

.info-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.back-link {
    text-align: center;
    margin-top: 1rem;
}

.back-link a {
    color: #0077be;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #005b8c;
    text-decoration: underline;
}

#patientCode {
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
}
