/* Cybernetic Medical Login Styles - eDomus */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #e2e8f0;
}

body {
    background: #020617 url('/eDomus/assets/img/login_bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Overlay for better contrast */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0.8) 100%);
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-container {
    background: rgba(10, 20, 35, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scanning line effect */
.login-container::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: scan 6s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo i {
    font-size: 3rem;
    color: #00ffff;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.logo h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.logo p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    box-sizing: border-box;
    transition: all 0.3s;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.creds-hint {
    text-align: center;
    margin-top: 25px;
    font-size: 0.75rem;
    color: #64748b;
    font-family: monospace;
    letter-spacing: 1px;
}

.creds-hint span {
    color: #4ade80;
}

/* ECG Decoration Line */
.ecg-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    opacity: 0.2;
    pointer-events: none;
}