﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a2647;
}

    /* Animated gradient background with medical machine image */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: linear-gradient(135deg, rgba(10, 38, 71, 0.88) 0%, rgba(26, 67, 113, 0.85) 30%, rgba(46, 96, 155, 0.8) 60%, rgba(66, 125, 195, 0.75) 100%), url('https://images.pexels.com/photos/7089019/pexels-photo-7089019.jpeg?auto=compress&cs=tinysrgb&w=1600');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        z-index: 0;
        animation: subtleZoom 20s ease-in-out infinite;
    }

@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.bg-hospital-svg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.08;
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    width: 1000px;
    min-height: 500px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
}

/* ── LEFT PANEL (Form) ── */
.left-panel {
    width: 50%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
}

/* Medical icon decoration inside form */
.form-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.08;
    font-size: 80px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3a7bb5, #2c5f8a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(58, 123, 181, 0.3);
}

    .brand-icon i {
        font-size: 32px;
        color: white;
    }

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #2c5f8a, #3a7bb5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.brand-sub {
    font-size: 13px;
    color: #8899aa;
    letter-spacing: 0.5px;
    margin-bottom: 13px;
    font-weight: 500;
}

.form-area {
    width: 100%;
    max-width: 320px;
}

/* Enhanced input fields */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #2c5f8a;
    margin-bottom: 6px;
    display: block;
}

/* FIXED: Input field styling */
.input-field {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    color: #1a2a3a;
    outline: none;
    background: #f8fafc;
    transition: all 0.3s ease;
}

    .input-field:focus {
        border-color: #3a7bb5;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(58, 123, 181, 0.1);
    }

/* FIXED: Lock icon positioning */
.input-icon {
    position: absolute;
    left: 16px;
    top: 38px;
    color: #94a3b8;
    font-size: 16px;
    z-index: 10;
    pointer-events: none;
}

.pass-wrap {
    position: relative;
    width: 100%;
}

    .pass-wrap .input-field {
        padding-right: 44px;
        width: 100%;
    }

/* FIXED: Eye button positioning */
.eye-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

    .eye-btn:hover {
        color: #3a7bb5;
    }

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: #64748b;
}

    .remember-row label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .remember-row input[type="checkbox"] {
        accent-color: #3a7bb5;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

.forgot {
    color: #3a7bb5;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .forgot:hover {
        color: #2c5f8a;
        text-decoration: underline;
    }

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #3a7bb5, #2c5f8a);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(58, 123, 181, 0.4);
        background: linear-gradient(135deg, #2c5f8a, #1a4a6e);
    }

.create-link {
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

    .create-link a {
        color: #3a7bb5;
        cursor: pointer;
        text-decoration: none;
        font-weight: 600;
        margin-left: 5px;
    }

        .create-link a:hover {
            text-decoration: underline;
        }

.dev-credit {
    margin-top: 30px;
    font-size: 11px;
    color: #cbd5e1;
    text-align: center;
}

    .dev-credit span {
        color: #3a7bb5;
        font-weight: 600;
    }

/* Separator line */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 6px 0;
    color: #cbd5e1;
    font-size: 12px;
}

    .separator::before,
    .separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e2e8f0;
    }

    .separator span {
        margin: 0 10px;
    }

/* Demo credentials hint */
.demo-hint {
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin-top: 16px;
}

/* ── RIGHT PANEL (Graphics) ── */
.right-panel {
    width: 50%;
    background: linear-gradient(135deg, rgba(232, 240, 248, 0.95), rgba(200, 220, 240, 0.92));
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

    /* Animated pulse effect on right panel */
    .right-panel::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
        background: radial-gradient(circle, rgba(58,123,181,0.05) 0%, transparent 70%);
        animation: pulse 8s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.city-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.1;
    z-index: 0;
}

.icon-circle-wrap {
    position: relative;
    width: 290px;
    height: 290px;
    z-index: 1;
}

.dashed-ring {
    position: absolute;
    top: 0;
    left: 0;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.center-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 18px 26px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    min-width: 130px;
    z-index: 2;
}

.center-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #2c5f8a;
    letter-spacing: 1.5px;
}

.center-card-sub {
    font-size: 10px;
    color: #8899aa;
    margin-top: 4px;
}

.orbit-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    z-index: 2;
}

    .orbit-icon:hover {
        transform: scale(1.1);
    }

/* Validation error */
.field-validation-error {
    font-size: 11px;
    color: #e74c3c;
    display: block;
    margin-top: 4px;
}

.validation-summary-errors ul {
    list-style: none;
    font-size: 12px;
    color: #e74c3c;
    margin-bottom: 16px;
    background: #fee2e2;
    padding: 8px 12px;
    border-radius: 10px;
}
