* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        background: url(../img/fondo2.png);
        background-size: cover;

        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .login-container {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        max-width: 1000px;
        width: 100%;
        display: flex;
        min-height: 500px;
    }

    .login-left {
        flex: 1;
        background: white;
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #333;
        text-align: center;
        
    }

    .login-left h1 {
        font-size: 36px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .login-left p {
        font-size: 16px;
        opacity: 0.9;
        line-height: 1.6;
        
    }

    .medical-icon {
        font-size: 120px;
        margin-bottom: 30px;
        animation: pulse 2s ease-in-out infinite;
        padding: 10px;
    }

    .medical-icon img {
        width: 350px;
        height: 170px;
        border-radius: 5%;
        background: white;
        padding: 15px;

    }



    .login-right {
        flex: 1;
        padding: 60px 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .login-header h2 {
        font-size: 28px;
        color: #333;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #666;
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 25px;
        position: relative;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 600;
        font-size: 14px;
    }

    .form-group input {
        width: 100%;
        padding: 15px;
        padding-left: 45px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.3s;
        font-family: inherit;
    }

    .form-group input:focus {
        outline: none;
        border-color: #60B8B0;
        box-shadow: 0 0 0 3px rgba(96, 184, 176, 0.1);
    }

    .form-group .icon {
        position: absolute;
        left: 15px;
        top: 43px;
        font-size: 18px;
        color: #999;
    }

    .password-toggle {
        position: absolute;
        right: 15px;
        top: 43px;
        cursor: pointer;
        font-size: 18px;
        color: #999;
        user-select: none;
    }

    .password-toggle:hover {
        color: #667eea;
    }

    .btn-login {
        width: 100%;
        padding: 16px;
        background: #60B8B0;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        margin-top: 10px;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .error-message {
        background: #fee;
        color: #c33;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 20px;
        font-size: 14px;
        text-align: center;
        border: 1px solid #fcc;
        animation: shake 0.5s;
    }

    .success-message {
        background: #efe;
        color: #3c3;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 20px;
        font-size: 14px;
        text-align: center;
        border: 1px solid #cfc;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-10px);
        }

        75% {
            transform: translateX(10px);
        }
    }

    .credentials-info {
        background: #f0f4ff;
        padding: 20px;
        border-radius: 10px;
        margin-top: 30px;
        border-left: 4px solid #667eea;
    }

    .credentials-info h4 {
        color: #667eea;
        margin-bottom: 10px;
        font-size: 14px;
        font-weight: 600;
    }

    .credentials-info .credential-item {
        margin: 10px 0;
        padding: 8px;
        background: white;
        border-radius: 6px;
        font-size: 13px;
    }

    .credentials-info .credential-item strong {
        color: #667eea;
        display: block;
        margin-bottom: 3px;
    }

    .credentials-info .credential-item span {
        color: #555;
        font-family: 'Courier New', monospace;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .login-container {
            flex-direction: column;
            max-width: 500px;
        }

        .login-left {
            padding: 40px 30px;
        }

        .login-left h1 {
            font-size: 28px;
        }

        .medical-icon {
            font-size: 80px;
        }

        .login-right {
            padding: 40px 30px;
        }

        .login-header h2 {
            font-size: 24px;
        }
    }

    @media (max-width: 480px) {
        body {
            padding: 10px;
        }

        .login-left,
        .login-right {
            padding: 30px 20px;
        }

        .login-header h2 {
            font-size: 22px;
        }
    }