﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --orthomed-teal: #5DBEB3;
    --orthomed-blue: #4A90E2;
    --orthomed-green: #27AE60;
    --orthomed-light-teal: rgba(93, 190, 179, 0.1);
    --orthomed-light-blue: rgba(74, 144, 226, 0.1);
    --primary-gradient: linear-gradient(135deg, #5DBEB3 0%, #4A90E2 100%);
    --secondary-gradient: linear-gradient(135deg, #27AE60 0%, #5DBEB3 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --shadow-primary: 0 20px 60px rgba(93, 190, 179, 0.3);
    --shadow-hover: 0 30px 80px rgba(93, 190, 179, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Medical Background Animations */
.medical-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Floating DNA Strands */
.dna-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dna-strand {
    position: absolute;
    width: 6px;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, var(--orthomed-teal) 25%, var(--orthomed-blue) 50%, var(--orthomed-teal) 75%, transparent 100%);
    border-radius: 3px;
    animation: dnaFloat 20s ease-in-out infinite;
    opacity: 0.3;
}

    .dna-strand:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
    }

    .dna-strand:nth-child(2) {
        left: 30%;
        animation-delay: -5s;
    }

    .dna-strand:nth-child(3) {
        right: 20%;
        animation-delay: -10s;
    }

    .dna-strand:nth-child(4) {
        right: 40%;
        animation-delay: -15s;
    }

@keyframes dnaFloat {

    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-50px) rotate(90deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    75% {
        transform: translateY(-40px) rotate(270deg);
    }
}

/* Heartbeat Lines */
.heartbeat-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.heartbeat-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--orthomed-green) 20%, var(--orthomed-teal) 40%, var(--orthomed-blue) 60%, var(--orthomed-green) 80%, transparent 100%);
    animation: heartbeatPulse 4s ease-in-out infinite;
    opacity: 0.4;
}

    .heartbeat-line:nth-child(1) {
        top: 25%;
        animation-delay: 0s;
    }

    .heartbeat-line:nth-child(2) {
        top: 50%;
        animation-delay: -1s;
    }

    .heartbeat-line:nth-child(3) {
        top: 75%;
        animation-delay: -2s;
    }

@keyframes heartbeatPulse {

    0%, 100% {
        transform: scaleX(0) translateX(-50%);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    50% {
        transform: scaleX(1) translateX(0%);
        opacity: 0.6;
    }

    90% {
        opacity: 0.4;
    }
}

/* Medical Icons Floating */
.medical-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.medical-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(93, 190, 179, 0.2);
    animation: iconFloat 25s linear infinite;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}



@keyframes iconFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Molecular Structure */
.molecule {
    position: absolute;
    width: 200px;
    height: 200px;
    animation: moleculeRotate 30s linear infinite;
    opacity: 0.1;
}

    .molecule:nth-child(1) {
        top: 10%;
        left: 80%;
        animation-delay: 0s;
    }

    .molecule:nth-child(2) {
        bottom: 20%;
        left: 10%;
        animation-delay: -15s;
    }

.atom {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--orthomed-teal);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(93, 190, 179, 0.5);
}

    .atom:nth-child(1) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .atom:nth-child(2) {
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .atom:nth-child(3) {
        bottom: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .atom:nth-child(4) {
        top: 50%;
        left: 20%;
        transform: translate(-50%, -50%);
    }

    .atom:nth-child(5) {
        top: 50%;
        right: 20%;
        transform: translate(50%, -50%);
    }

.electron-path {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    animation: electronOrbit 8s linear infinite;
}

@keyframes moleculeRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes electronOrbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Pulse Waves */
.pulse-wave {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(93, 190, 179, 0.3);
    border-radius: 50%;
    animation: pulseExpand 6s ease-out infinite;
}

    .pulse-wave:nth-child(1) {
        top: 20%;
        left: 20%;
        animation-delay: 0s;
    }

    .pulse-wave:nth-child(2) {
        bottom: 30%;
        right: 15%;
        animation-delay: -2s;
    }

    .pulse-wave:nth-child(3) {
        top: 60%;
        left: 70%;
        animation-delay: -4s;
    }

@keyframes pulseExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Medical Cross Animation */
.medical-cross {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.15;
    animation: crossFloat 20s ease-in-out infinite;
}

    .medical-cross:nth-child(1) {
        top: 15%;
        right: 25%;
        animation-delay: 0s;
    }

    .medical-cross:nth-child(2) {
        bottom: 25%;
        left: 20%;
        animation-delay: -7s;
    }

    .medical-cross:nth-child(3) {
        top: 70%;
        right: 60%;
        animation-delay: -14s;
    }

    .medical-cross::before,
    .medical-cross::after {
        content: '';
        position: absolute;
        background: var(--orthomed-green);
        border-radius: 2px;
    }

    .medical-cross::before {
        width: 40px;
        height: 8px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .medical-cross::after {
        width: 8px;
        height: 40px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

@keyframes crossFloat {

    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

/* Main Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Login Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: slideInUp 0.8s ease-out;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-gradient);
        border-radius: 24px 24px 0 0;
    }

@keyframes slideInUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.logo {
    width: 120px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-primary);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-image {
    width: 100px;
    height: auto;
    /* border-radius: 50%; */
    /* optional: makes it round */
}

@keyframes logoFloat {

    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo i {
    font-size: 32px;
    color: white;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(93, 190, 179, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {

    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #E1E8ED;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

    .form-input:focus {
        outline: none;
        border-color: var(--orthomed-teal);
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 0 0 4px rgba(93, 190, 179, 0.1);
        transform: translateY(-2px);
    }

    .form-input::placeholder {
        color: #95A5A6;
        font-weight: 400;
    }

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus + .input-icon {
    color: var(--orthomed-teal);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

    .password-toggle:hover {
        color: var(--orthomed-teal);
    }

/* Options Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #E1E8ED;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

    .custom-checkbox.checked {
        background: var(--primary-gradient);
        border-color: transparent;
    }

        .custom-checkbox.checked::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 10px;
        }

.checkbox-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.forgot-link {
    color: var(--orthomed-teal);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

    .forgot-link:hover {
        color: var(--orthomed-blue);
    }

    .forgot-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: var(--primary-gradient);
        transition: width 0.3s ease;
    }

    .forgot-link:hover::after {
        width: 100%;
    }

/* Login Button */
.login-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-primary);
}

    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

        .login-btn:hover::before {
            left: 100%;
        }

    .login-btn:active {
        transform: translateY(-1px);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 40px 30px;
        margin: 10px;
    }

    .brand-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

        .logo i {
            font-size: 28px;
        }

    .brand-name {
        font-size: 22px;
    }
}
